Re: [PATCH 4/4] input: serio: Replace timeval by timespec64

2016-09-15 Thread Deepa Dinamani
On Tue, Sep 13, 2016 at 8:13 AM, Arnd Bergmann <a...@arndb.de> wrote: > On Tuesday, September 13, 2016 7:10:05 AM CEST Deepa Dinamani wrote: >> struct timeval is not y2038 safe. >> All references to timeval will be deleted from the >> kernel to make it y2038 safe. >&g

Re: [PATCH 4/4] input: serio: Replace timeval by timespec64

2016-09-15 Thread Deepa Dinamani
On Tue, Sep 13, 2016 at 8:13 AM, Arnd Bergmann wrote: > On Tuesday, September 13, 2016 7:10:05 AM CEST Deepa Dinamani wrote: >> struct timeval is not y2038 safe. >> All references to timeval will be deleted from the >> kernel to make it y2038 safe. >> Replace it

Re: [PATCH 1/4] uinput: Add ioctl for using monotonic/ boot times

2016-09-15 Thread Deepa Dinamani
On Tue, Sep 13, 2016 at 8:07 AM, Arnd Bergmann <a...@arndb.de> wrote: > On Tuesday, September 13, 2016 7:10:02 AM CEST Deepa Dinamani wrote: >> --- a/drivers/input/misc/uinput.c >> +++ b/drivers/input/misc/uinput.c >> @@ -46,11 +46,28 @@ static int uinput_dev_

Re: [PATCH 1/4] uinput: Add ioctl for using monotonic/ boot times

2016-09-15 Thread Deepa Dinamani
On Tue, Sep 13, 2016 at 8:07 AM, Arnd Bergmann wrote: > On Tuesday, September 13, 2016 7:10:02 AM CEST Deepa Dinamani wrote: >> --- a/drivers/input/misc/uinput.c >> +++ b/drivers/input/misc/uinput.c >> @@ -46,11 +46,28 @@ static int uinput_dev_event(

Re: [PATCH v5 1/5] vfs: Add current_time() api

2016-09-14 Thread Deepa Dinamani
>> + * current_time - Return FS time >> + * @inode: inode. >> + * >> + * Return the current time truncated to the time granularity supported by >> + * the fs. >> + * >> + * Note that inode and inode->sb cannot be NULL. >> + * Otherwise, the function warns and returns time without truncation. >> +

Re: [PATCH v5 1/5] vfs: Add current_time() api

2016-09-14 Thread Deepa Dinamani
>> + * current_time - Return FS time >> + * @inode: inode. >> + * >> + * Return the current time truncated to the time granularity supported by >> + * the fs. >> + * >> + * Note that inode and inode->sb cannot be NULL. >> + * Otherwise, the function warns and returns time without truncation. >> +

[PATCH v5 1/5] vfs: Add current_time() api

2016-09-14 Thread Deepa Dinamani
-off-by: Deepa Dinamani <deepa.ker...@gmail.com> Reviewed-by: Arnd Bergmann <a...@arndb.de> --- fs/inode.c | 23 +++ include/linux/fs.h | 1 + 2 files changed, 24 insertions(+) diff --git a/fs/inode.c b/fs/inode.c index fd604c0..a95e04e 100644 --- a/fs/inod

[PATCH v5 1/5] vfs: Add current_time() api

2016-09-14 Thread Deepa Dinamani
-off-by: Deepa Dinamani Reviewed-by: Arnd Bergmann --- fs/inode.c | 23 +++ include/linux/fs.h | 1 + 2 files changed, 24 insertions(+) diff --git a/fs/inode.c b/fs/inode.c index fd604c0..a95e04e 100644 --- a/fs/inode.c +++ b/fs/inode.c @@ -2075,3 +2075,26 @@ void

[PATCH v5 2/5] fs: proc: Delete inode time initializations in proc_alloc_inode()

2016-09-14 Thread Deepa Dinamani
() was used to assign times in proc_alloc_inode(). Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com> Reported-by: Fengguang Wu <fengguang...@intel.com> [0-day test robot] Reviewed-by: Arnd Bergmann <a...@arndb.de> --- fs/proc/inode.c | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH v5 2/5] fs: proc: Delete inode time initializations in proc_alloc_inode()

2016-09-14 Thread Deepa Dinamani
() was used to assign times in proc_alloc_inode(). Signed-off-by: Deepa Dinamani Reported-by: Fengguang Wu [0-day test robot] Reviewed-by: Arnd Bergmann --- fs/proc/inode.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/proc/inode.c b/fs/proc/inode.c index c1b7238..ce1f1a9 100644 --- a/fs/proc

[PATCH v5 5/5] fs: Replace current_fs_time() with current_time()

2016-09-14 Thread Deepa Dinamani
to current_fs_time() to use the new current_time() function instead. current_fs_time() will be deleted. Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com> --- drivers/char/sonypi.c | 2 +- drivers/platform/x86/sony-laptop.c | 2 +- fs/attr.c | 2

[PATCH v5 5/5] fs: Replace current_fs_time() with current_time()

2016-09-14 Thread Deepa Dinamani
to current_fs_time() to use the new current_time() function instead. current_fs_time() will be deleted. Signed-off-by: Deepa Dinamani --- drivers/char/sonypi.c | 2 +- drivers/platform/x86/sony-laptop.c | 2 +- fs/attr.c | 2 +- fs/bad_inode.c

[PATCH v5 4/5] fs: Replace CURRENT_TIME_SEC with current_time() for inode timestamps

2016-09-14 Thread Deepa Dinamani
range checking is introduced. This works because alloc_super() fills in the the s_time_gran in super block to NSEC_PER_SEC. Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com> Acked-by: Jan Kara <j...@suse.cz> --- fs/affs/amigaffs.c | 6 +++--- fs/affs/inode.c |

[PATCH v5 4/5] fs: Replace CURRENT_TIME_SEC with current_time() for inode timestamps

2016-09-14 Thread Deepa Dinamani
range checking is introduced. This works because alloc_super() fills in the the s_time_gran in super block to NSEC_PER_SEC. Signed-off-by: Deepa Dinamani Acked-by: Jan Kara --- fs/affs/amigaffs.c | 6 +++--- fs/affs/inode.c | 2 +- fs/bfs/dir.c| 14 +++--- fs

[PATCH v5 3/5] fs: Replace CURRENT_TIME with current_time() for inode timestamps

2016-09-14 Thread Deepa Dinamani
to change timestamps in different inodes, it is because they share the same time granularity. Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com> Reviewed-by: Arnd Bergmann <a...@arndb.de> Acked-by: Felipe Balbi <ba...@kernel.org> Acked-by: Steven Whitehouse <swhit

[PATCH v5 3/5] fs: Replace CURRENT_TIME with current_time() for inode timestamps

2016-09-14 Thread Deepa Dinamani
to change timestamps in different inodes, it is because they share the same time granularity. Signed-off-by: Deepa Dinamani Reviewed-by: Arnd Bergmann Acked-by: Felipe Balbi Acked-by: Steven Whitehouse Acked-by: Ryusuke Konishi Acked-by: David Sterba --- arch/powerpc/platforms/cell/spufs

[PATCH v5 0/5] Introduce current_time() api

2016-09-14 Thread Deepa Dinamani
/6/17/875 . Deepa Dinamani (5): vfs: Add current_time() api fs: proc: Delete inode time initializations in proc_alloc_inode() fs: Replace CURRENT_TIME with current_time() for inode timestamps fs: Replace CURRENT_TIME_SEC with current_time() for inode timestamps fs: Replace current_fs_time

[PATCH v5 0/5] Introduce current_time() api

2016-09-14 Thread Deepa Dinamani
/6/17/875 . Deepa Dinamani (5): vfs: Add current_time() api fs: proc: Delete inode time initializations in proc_alloc_inode() fs: Replace CURRENT_TIME with current_time() for inode timestamps fs: Replace CURRENT_TIME_SEC with current_time() for inode timestamps fs: Replace current_fs_time

[PATCH 3/4] input: Deprecate real timestamps beyond year 2106

2016-09-13 Thread Deepa Dinamani
raw_input_event.The changes to the popular libraries will be posted along with the kernel changes. The driver version is also updated to reflect the change in event format. Suggested-by: Arnd Bergmann <a...@arndb.de> Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com> --- Changes fro

[PATCH 3/4] input: Deprecate real timestamps beyond year 2106

2016-09-13 Thread Deepa Dinamani
raw_input_event.The changes to the popular libraries will be posted along with the kernel changes. The driver version is also updated to reflect the change in event format. Suggested-by: Arnd Bergmann Signed-off-by: Deepa Dinamani --- Changes from v1 * Fixed the kbuild error * Used __KERNEL__ define

Re: [PATCH 3/4] input: Deprecate real timestamps beyond year 2106

2016-09-13 Thread Deepa Dinamani
> All errors (new ones prefixed by >>): > >drivers/input/input-compat.c: In function 'input_event_from_user': >>> drivers/input/input-compat.c:24:15: error: invalid application of 'sizeof' >>> to incomplete type 'struct input_event_compat' >sizeof(struct input_event_compat))) >

Re: [PATCH 3/4] input: Deprecate real timestamps beyond year 2106

2016-09-13 Thread Deepa Dinamani
> All errors (new ones prefixed by >>): > >drivers/input/input-compat.c: In function 'input_event_from_user': >>> drivers/input/input-compat.c:24:15: error: invalid application of 'sizeof' >>> to incomplete type 'struct input_event_compat' >sizeof(struct input_event_compat))) >

[PATCH 4/4] input: serio: Replace timeval by timespec64

2016-09-13 Thread Deepa Dinamani
are sufficient here. The unit of the delta times is also changed in certain cases to nanoseconds rather than microseconds. This is in line with timespec64 which keeps time in nanoseconds. Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com> --- drivers/input/serio/hil_mlc.c

[PATCH 4/4] input: serio: Replace timeval by timespec64

2016-09-13 Thread Deepa Dinamani
are sufficient here. The unit of the delta times is also changed in certain cases to nanoseconds rather than microseconds. This is in line with timespec64 which keeps time in nanoseconds. Signed-off-by: Deepa Dinamani --- drivers/input/serio/hil_mlc.c| 37

[PATCH 0/4] Make input drivers y2038 safe

2016-09-13 Thread Deepa Dinamani
is a result of many discussions with Arnd Bergmann. Deepa Dinamani (4): uinput: Add ioctl for using monotonic/ boot times input: evdev: Replace timeval with timespec64 input: Deprecate real timestamps beyond year 2106 input: serio: Replace timeval by timespec64 drivers/input/evdev.c

[PATCH 1/4] uinput: Add ioctl for using monotonic/ boot times

2016-09-13 Thread Deepa Dinamani
compatibility. The structure to maintain input events will be changed in a different patch. Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com> --- drivers/input/misc/uinput.c | 58 - include/linux/uinput.h | 1 + include/uapi/linux/ui

[PATCH 0/4] Make input drivers y2038 safe

2016-09-13 Thread Deepa Dinamani
is a result of many discussions with Arnd Bergmann. Deepa Dinamani (4): uinput: Add ioctl for using monotonic/ boot times input: evdev: Replace timeval with timespec64 input: Deprecate real timestamps beyond year 2106 input: serio: Replace timeval by timespec64 drivers/input/evdev.c

[PATCH 1/4] uinput: Add ioctl for using monotonic/ boot times

2016-09-13 Thread Deepa Dinamani
compatibility. The structure to maintain input events will be changed in a different patch. Signed-off-by: Deepa Dinamani --- drivers/input/misc/uinput.c | 58 - include/linux/uinput.h | 1 + include/uapi/linux/uinput.h | 3 +++ 3 files changed

[PATCH 3/4] input: Deprecate real timestamps beyond year 2106

2016-09-13 Thread Deepa Dinamani
raw_input_event.The changes to the popular libraries will be posted along with the kernel changes. The driver version is also updated to reflect the change in event format. Suggested-by: Arnd Bergmann <a...@arndb.de> Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com> --- drivers/i

[PATCH 2/4] input: evdev: Replace timeval with timespec64

2016-09-13 Thread Deepa Dinamani
struct timeval is not y2038 safe. All references to timeval in the kernel will be replaced by y2038 safe structures. Replace all references to timeval with y2038 safe struct timespec64 here. struct input_event will be changed in a different patch. Signed-off-by: Deepa Dinamani <deepa.

[PATCH 2/4] input: evdev: Replace timeval with timespec64

2016-09-13 Thread Deepa Dinamani
struct timeval is not y2038 safe. All references to timeval in the kernel will be replaced by y2038 safe structures. Replace all references to timeval with y2038 safe struct timespec64 here. struct input_event will be changed in a different patch. Signed-off-by: Deepa Dinamani --- drivers

[PATCH 3/4] input: Deprecate real timestamps beyond year 2106

2016-09-13 Thread Deepa Dinamani
raw_input_event.The changes to the popular libraries will be posted along with the kernel changes. The driver version is also updated to reflect the change in event format. Suggested-by: Arnd Bergmann Signed-off-by: Deepa Dinamani --- drivers/input/evdev.c| 20 ++-- drivers

Re: [GIT PULL] [PATCH v4 00/26] Delete CURRENT_TIME and CURRENT_TIME_SEC macros

2016-08-16 Thread Deepa Dinamani
Thank you for the suggestion. > Who are you execting to pull this huge patch series? The last pull request was addressed to Al as per Arnd's suggestion. I'm not completely sure who should it be addressed to. > Why not just introduce the new api call, wait for that to be merged, and > then push

Re: [GIT PULL] [PATCH v4 00/26] Delete CURRENT_TIME and CURRENT_TIME_SEC macros

2016-08-16 Thread Deepa Dinamani
Thank you for the suggestion. > Who are you execting to pull this huge patch series? The last pull request was addressed to Al as per Arnd's suggestion. I'm not completely sure who should it be addressed to. > Why not just introduce the new api call, wait for that to be merged, and > then push

[PATCH v4 01/26] vfs: Add current_time() api

2016-08-14 Thread Deepa Dinamani
-off-by: Deepa Dinamani <deepa.ker...@gmail.com> Reviewed-by: Arnd Bergmann <a...@arndb.de> --- fs/inode.c | 23 +++ include/linux/fs.h | 1 + 2 files changed, 24 insertions(+) diff --git a/fs/inode.c b/fs/inode.c index fd604c0..a95e04e 100644 --- a/fs/inod

[PATCH v4 01/26] vfs: Add current_time() api

2016-08-14 Thread Deepa Dinamani
-off-by: Deepa Dinamani Reviewed-by: Arnd Bergmann --- fs/inode.c | 23 +++ include/linux/fs.h | 1 + 2 files changed, 24 insertions(+) diff --git a/fs/inode.c b/fs/inode.c index fd604c0..a95e04e 100644 --- a/fs/inode.c +++ b/fs/inode.c @@ -2075,3 +2075,26 @@ void

[PATCH v4 16/26] drivers: staging: lustre: Replace CURRENT_TIME with current_time()

2016-08-14 Thread Deepa Dinamani
current_time() will be extended to do range checks. Hence, it is necessary for all file system timestamps to use current_time(). Also change format string for prints so that these are valid when vfs is transitioned to use 64 bit timestamps. Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.

[PATCH v4 16/26] drivers: staging: lustre: Replace CURRENT_TIME with current_time()

2016-08-14 Thread Deepa Dinamani
current_time() will be extended to do range checks. Hence, it is necessary for all file system timestamps to use current_time(). Also change format string for prints so that these are valid when vfs is transitioned to use 64 bit timestamps. Signed-off-by: Deepa Dinamani Acked-by: James Simmons

[PATCH v4 03/26] fs: Replace CURRENT_TIME with current_time() for inode timestamps

2016-08-14 Thread Deepa Dinamani
to change timestamps in different inodes, it is because they share the same time granularity. Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com> Reviewed-by: Arnd Bergmann <a...@arndb.de> Acked-by: Felipe Balbi <ba...@kernel.org> Acked-by: Steven Whitehouse <swhit

[PATCH v4 03/26] fs: Replace CURRENT_TIME with current_time() for inode timestamps

2016-08-14 Thread Deepa Dinamani
to change timestamps in different inodes, it is because they share the same time granularity. Signed-off-by: Deepa Dinamani Reviewed-by: Arnd Bergmann Acked-by: Felipe Balbi Acked-by: Steven Whitehouse Acked-by: Ryusuke Konishi Acked-by: David Sterba --- arch/powerpc/platforms/cell/spufs

[PATCH v4 25/26] time: Delete current_fs_time() function

2016-08-14 Thread Deepa Dinamani
All uses of the current_fs_time() function have been replaced by other time interfaces. And, its use cases can be fulfilled by current_time() or ktime_get_* variants. Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com> Reviewed-by: Arnd Bergmann <a...@arndb.de> Cc: John Stul

[PATCH v4 25/26] time: Delete current_fs_time() function

2016-08-14 Thread Deepa Dinamani
All uses of the current_fs_time() function have been replaced by other time interfaces. And, its use cases can be fulfilled by current_time() or ktime_get_* variants. Signed-off-by: Deepa Dinamani Reviewed-by: Arnd Bergmann Cc: John Stultz Cc: Thomas Gleixner --- include/linux/fs.h | 1

[PATCH v4 04/26] fs: Replace CURRENT_TIME_SEC with current_time() for inode timestamps

2016-08-14 Thread Deepa Dinamani
range checking is introduced. This works because alloc_super() fills in the the s_time_gran in super block to NSEC_PER_SEC. Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com> Acked-by: Jan Kara <j...@suse.cz> --- fs/affs/amigaffs.c | 6 +++--- fs/affs/inode.c |

[PATCH v4 04/26] fs: Replace CURRENT_TIME_SEC with current_time() for inode timestamps

2016-08-14 Thread Deepa Dinamani
range checking is introduced. This works because alloc_super() fills in the the s_time_gran in super block to NSEC_PER_SEC. Signed-off-by: Deepa Dinamani Acked-by: Jan Kara --- fs/affs/amigaffs.c | 6 +++--- fs/affs/inode.c | 2 +- fs/bfs/dir.c| 14 +++--- fs

[PATCH v4 12/26] fs: cifs: Replace CURRENT_TIME by current_time()

2016-08-14 Thread Deepa Dinamani
will be deleted before merging the aforementioned change. Change signature of helper cifs_all_info_to_fattr since it now needs both super_block and cifs_sb_info. Note: The inode timestamps read from the server are assumed to have correct granularity and range. Signed-off-by: Deepa Dinamani

[PATCH v4 12/26] fs: cifs: Replace CURRENT_TIME by current_time()

2016-08-14 Thread Deepa Dinamani
will be deleted before merging the aforementioned change. Change signature of helper cifs_all_info_to_fattr since it now needs both super_block and cifs_sb_info. Note: The inode timestamps read from the server are assumed to have correct granularity and range. Signed-off-by: Deepa Dinamani Reviewed

[PATCH v4 19/26] audit: Use timespec64 to represent audit timestamps

2016-08-14 Thread Deepa Dinamani
1024 characters. Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com> Reviewed-by: Arnd Bergmann <a...@arndb.de> Acked-by: Paul Moore <p...@paul-moore.com> Acked-by: Richard Guy Briggs <r...@redhat.com> Cc: Eric Paris <epa...@redhat.com> Cc: Paul Moore <p..

[PATCH v4 19/26] audit: Use timespec64 to represent audit timestamps

2016-08-14 Thread Deepa Dinamani
1024 characters. Signed-off-by: Deepa Dinamani Reviewed-by: Arnd Bergmann Acked-by: Paul Moore Acked-by: Richard Guy Briggs Cc: Eric Paris Cc: Paul Moore Cc: Richard Guy Briggs Cc: linux-au...@redhat.com --- include/linux/audit.h | 4 ++-- kernel/audit.c| 10 +- kernel

[PATCH v4 02/26] fs: proc: Delete inode time initializations in proc_alloc_inode()

2016-08-14 Thread Deepa Dinamani
() was used to assign times in proc_alloc_inode(). Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com> Reported-by: Fengguang Wu <fengguang...@intel.com> [0-day test robot] Reviewed-by: Arnd Bergmann <a...@arndb.de> --- fs/proc/inode.c | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH v4 02/26] fs: proc: Delete inode time initializations in proc_alloc_inode()

2016-08-14 Thread Deepa Dinamani
() was used to assign times in proc_alloc_inode(). Signed-off-by: Deepa Dinamani Reported-by: Fengguang Wu [0-day test robot] Reviewed-by: Arnd Bergmann --- fs/proc/inode.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/proc/inode.c b/fs/proc/inode.c index c1b7238..ce1f1a9 100644 --- a/fs/proc

[PATCH v4 26/26] time: Delete CURRENT_TIME_SEC and CURRENT_TIME

2016-08-14 Thread Deepa Dinamani
All uses of CURRENT_TIME_SEC and CURRENT_TIME macros have been replaced by other time functions. These macros are also not y2038 safe. And, all their use cases can be fulfilled by y2038 safe ktime_get_* variants. Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com> Acked-by: John

[PATCH v4 26/26] time: Delete CURRENT_TIME_SEC and CURRENT_TIME

2016-08-14 Thread Deepa Dinamani
All uses of CURRENT_TIME_SEC and CURRENT_TIME macros have been replaced by other time functions. These macros are also not y2038 safe. And, all their use cases can be fulfilled by y2038 safe ktime_get_* variants. Signed-off-by: Deepa Dinamani Acked-by: John Stultz Reviewed-by: Arnd Bergmann Cc

[PATCH v4 08/26] fs: ext4: Use current_time() for inode timestamps

2016-08-14 Thread Deepa Dinamani
() or CURRENT_TIME_SEC is not required. Use current_time() directly to obtain timestamps unconditionally, and remove ext4_current_time(). Quota files are assumed to be on the same filesystem. Hence, use current_time() for these files as well. Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com> Reviewed-by

[PATCH v4 08/26] fs: ext4: Use current_time() for inode timestamps

2016-08-14 Thread Deepa Dinamani
() or CURRENT_TIME_SEC is not required. Use current_time() directly to obtain timestamps unconditionally, and remove ext4_current_time(). Quota files are assumed to be on the same filesystem. Hence, use current_time() for these files as well. Signed-off-by: Deepa Dinamani Reviewed-by: Arnd Bergmann Cc: "The

[PATCH v4 15/26] fs: f2fs: Use ktime_get_real_seconds for sit_info times

2016-08-14 Thread Deepa Dinamani
CURRENT_TIME_SEC is not y2038 safe. Replace use of CURRENT_TIME_SEC with ktime_get_real_seconds in segment timestamps used by GC algorithm including the segment mtime timestamps. Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com> Reviewed-by: Arnd Bergmann <a...@arndb.de> Cc:

[PATCH v4 15/26] fs: f2fs: Use ktime_get_real_seconds for sit_info times

2016-08-14 Thread Deepa Dinamani
CURRENT_TIME_SEC is not y2038 safe. Replace use of CURRENT_TIME_SEC with ktime_get_real_seconds in segment timestamps used by GC algorithm including the segment mtime timestamps. Signed-off-by: Deepa Dinamani Reviewed-by: Arnd Bergmann Cc: Jaegeuk Kim Cc: Changman Lee Cc: linux-f2fs-de

[PATCH v4 17/26] fs: ocfs2: Use time64_t to represent orphan scan times

2016-08-14 Thread Deepa Dinamani
of real time as only delta scan times are relevant and these values are not persistent across reboots. The format string for the debug print is still using long as this is only the time elapsed since the last scan and long is sufficient to represent this value. Signed-off-by: Deepa Dinamani

[PATCH v4 17/26] fs: ocfs2: Use time64_t to represent orphan scan times

2016-08-14 Thread Deepa Dinamani
of real time as only delta scan times are relevant and these values are not persistent across reboots. The format string for the debug print is still using long as this is only the time elapsed since the last scan and long is sufficient to represent this value. Signed-off-by: Deepa Dinamani

[PATCH v4 18/26] fs: ocfs2: Replace CURRENT_TIME macro

2016-08-14 Thread Deepa Dinamani
wide enough to accommodate time64_t. Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com> Reviewed-by: Arnd Bergmann <a...@arndb.de> Cc: Mark Fasheh <mfas...@suse.com> Cc: Joel Becker <jl...@evilplan.org> Cc: ocfs2-de...@oss.oracle.com --- fs/ocfs2/cluster/heartbeat.c

[PATCH v4 18/26] fs: ocfs2: Replace CURRENT_TIME macro

2016-08-14 Thread Deepa Dinamani
wide enough to accommodate time64_t. Signed-off-by: Deepa Dinamani Reviewed-by: Arnd Bergmann Cc: Mark Fasheh Cc: Joel Becker Cc: ocfs2-de...@oss.oracle.com --- fs/ocfs2/cluster/heartbeat.c | 2 +- fs/ocfs2/inode.c | 2 +- fs/ocfs2/namei.c | 6 -- 3 files changed, 6

[PATCH v4 10/26] fs: btrfs: Use ktime_get_real_ts for root ctime

2016-08-14 Thread Deepa Dinamani
timespec64 as well. Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com> Acked-by: David Sterba <dste...@suse.com> Reviewed-by: Arnd Bergmann <a...@arndb.de> Cc: Chris Mason <c...@fb.com> Cc: David Sterba <dste...@suse.com> Cc: Josef Bacik <jba...@fb.com> Cc: linux

[PATCH v4 10/26] fs: btrfs: Use ktime_get_real_ts for root ctime

2016-08-14 Thread Deepa Dinamani
timespec64 as well. Signed-off-by: Deepa Dinamani Acked-by: David Sterba Reviewed-by: Arnd Bergmann Cc: Chris Mason Cc: David Sterba Cc: Josef Bacik Cc: linux-bt...@vger.kernel.org --- fs/btrfs/root-tree.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/btrfs/root-tree.c

[PATCH v4 23/26] fs: ceph: Replace current_fs_time for request stamp

2016-08-14 Thread Deepa Dinamani
() to truncate the timestamp, using the right granularity from the superblock. This api will be transitioned to be y2038 safe along with vfs. Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com> Reviewed-by: Arnd Bergmann <a...@arndb.de> Cc: "Yan, Zheng" <z...@red

[PATCH v4 23/26] fs: ceph: Replace current_fs_time for request stamp

2016-08-14 Thread Deepa Dinamani
() to truncate the timestamp, using the right granularity from the superblock. This api will be transitioned to be y2038 safe along with vfs. Signed-off-by: Deepa Dinamani Reviewed-by: Arnd Bergmann Cc: "Yan, Zheng" Cc: Sage Weil Cc: Ilya Dryomov Cc: ceph-de...@vger.kernel.org --

[PATCH v4 11/26] fs: udf: Replace CURRENT_TIME with current_time()

2016-08-14 Thread Deepa Dinamani
make them y2038 safe. As part of the effort current_time() will be extended to do range checks. Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com> Cc: Jan Kara <j...@suse.cz> Reviewed-by: Jan Kara <j...@suse.cz> Reviewed-by: Arnd Bergmann <a...@arndb.de> --- fs/udf/sup

[PATCH v4 11/26] fs: udf: Replace CURRENT_TIME with current_time()

2016-08-14 Thread Deepa Dinamani
make them y2038 safe. As part of the effort current_time() will be extended to do range checks. Signed-off-by: Deepa Dinamani Cc: Jan Kara Reviewed-by: Jan Kara Reviewed-by: Arnd Bergmann --- fs/udf/super.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/fs/udf/su

[PATCH v4 09/26] fs: ubifs: Replace CURRENT_TIME_SEC with current_time

2016-08-14 Thread Deepa Dinamani
super_block. The granularity check to call current_fs_time() or CURRENT_TIME_SEC is not required. Use current_time() directly to update inode timestamp. Use timespec_trunc during file system creation, before the first inode is created. Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com> Re

[PATCH v4 09/26] fs: ubifs: Replace CURRENT_TIME_SEC with current_time

2016-08-14 Thread Deepa Dinamani
super_block. The granularity check to call current_fs_time() or CURRENT_TIME_SEC is not required. Use current_time() directly to update inode timestamp. Use timespec_trunc during file system creation, before the first inode is created. Signed-off-by: Deepa Dinamani Reviewed-by: Arnd Bergmann Cc

[PATCH v4 06/26] fs: ufs: Use ktime_get_real_ts64() for birthtime

2016-08-14 Thread Deepa Dinamani
CURRENT_TIME is not y2038 safe. Replace it with ktime_get_real_ts64(). Inode time formats are already 64 bit long and accommodates time64_t. Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com> Cc: Evgeniy Dushistov <dushis...@mail.ru> --- fs/ufs/ialloc.c | 6 -- 1 fil

[PATCH v4 06/26] fs: ufs: Use ktime_get_real_ts64() for birthtime

2016-08-14 Thread Deepa Dinamani
CURRENT_TIME is not y2038 safe. Replace it with ktime_get_real_ts64(). Inode time formats are already 64 bit long and accommodates time64_t. Signed-off-by: Deepa Dinamani Cc: Evgeniy Dushistov --- fs/ufs/ialloc.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/ufs

[PATCH v4 21/26] block: Replace CURRENT_TIME with ktime_get_real_ts

2016-08-14 Thread Deepa Dinamani
struct timespec64 in a separate patch. Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com> Reviewed-by: Arnd Bergmann <a...@arndb.de> Cc: Ilya Dryomov <idryo...@gmail.com> Cc: Sage Weil <s...@redhat.com> Cc: Alex Elder <el...@kernel.org> Cc: ceph-de...@vger.kernel.or

[PATCH v4 21/26] block: Replace CURRENT_TIME with ktime_get_real_ts

2016-08-14 Thread Deepa Dinamani
struct timespec64 in a separate patch. Signed-off-by: Deepa Dinamani Reviewed-by: Arnd Bergmann Cc: Ilya Dryomov Cc: Sage Weil Cc: Alex Elder Cc: ceph-de...@vger.kernel.org --- drivers/block/rbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/rbd.c b/drivers

[PATCH v4 14/26] fs: cifs: Replace CURRENT_TIME by get_seconds

2016-08-14 Thread Deepa Dinamani
between server and client, and the largest timezone difference is in the range of one day. All cifs timestamps currently use timespec internally. This timestamp can also be transitioned into using timespec64 when all other timestamps for cifs is transitioned to use timespec64. Signed-off-by: Deepa

[PATCH v4 14/26] fs: cifs: Replace CURRENT_TIME by get_seconds

2016-08-14 Thread Deepa Dinamani
between server and client, and the largest timezone difference is in the range of one day. All cifs timestamps currently use timespec internally. This timestamp can also be transitioned into using timespec64 when all other timestamps for cifs is transitioned to use timespec64. Signed-off-by: Deepa

[PATCH v4 07/26] fs: jfs: Replace CURRENT_TIME_SEC by current_time()

2016-08-14 Thread Deepa Dinamani
jfs uses nanosecond granularity for filesystem timestamps. Only this assignment is not using nanosecond granularity. Use current_time() to get the right granularity. Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com> Cc: Dave Kleikamp <dave.kleik...@oracle.com> Acked-by: D

[PATCH v4 07/26] fs: jfs: Replace CURRENT_TIME_SEC by current_time()

2016-08-14 Thread Deepa Dinamani
jfs uses nanosecond granularity for filesystem timestamps. Only this assignment is not using nanosecond granularity. Use current_time() to get the right granularity. Signed-off-by: Deepa Dinamani Cc: Dave Kleikamp Acked-by: Dave Kleikamp Reviewed-by: Arnd Bergmann Cc: jfs-discuss

[PATCH v4 20/26] fs: nfs: Make nfs boot time y2038 safe

2016-08-14 Thread Deepa Dinamani
of ktime_t for the authsys_parms stamp field. Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com> Reviewed-by: Arnd Bergmann <a...@arndb.de> Cc: Trond Myklebust <trond.mykleb...@primarydata.com> Cc: Anna Schumaker <anna.schuma...@netapp.com> Cc: linux-...@vger.kernel.

[PATCH v4 20/26] fs: nfs: Make nfs boot time y2038 safe

2016-08-14 Thread Deepa Dinamani
of ktime_t for the authsys_parms stamp field. Signed-off-by: Deepa Dinamani Reviewed-by: Arnd Bergmann Cc: Trond Myklebust Cc: Anna Schumaker Cc: linux-...@vger.kernel.org --- fs/nfs/client.c | 2 +- fs/nfs/netns.h| 2 +- fs/nfs/nfs4proc.c | 10 ++ fs/nfs/nfs4xdr.c | 2 +- 4

[PATCH v4 05/26] fs: Replace current_fs_time() with current_time()

2016-08-14 Thread Deepa Dinamani
to current_fs_time() to use the new current_time() function instead. current_fs_time() will be deleted. Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com> --- drivers/char/sonypi.c | 2 +- drivers/platform/x86/sony-laptop.c | 2 +- fs/attr.c | 2

[PATCH v4 05/26] fs: Replace current_fs_time() with current_time()

2016-08-14 Thread Deepa Dinamani
to current_fs_time() to use the new current_time() function instead. current_fs_time() will be deleted. Signed-off-by: Deepa Dinamani --- drivers/char/sonypi.c | 2 +- drivers/platform/x86/sony-laptop.c | 2 +- fs/attr.c | 2 +- fs/bad_inode.c

[PATCH v4 22/26] libceph: Replace CURRENT_TIME with ktime_get_real_ts

2016-08-14 Thread Deepa Dinamani
struct timespec64 in a separate patch. Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com> Reviewed-by: Arnd Bergmann <a...@arndb.de> Cc: "Yan, Zheng" <z...@redhat.com> Cc: Sage Weil <s...@redhat.com> Cc: Ilya Dryomov <idryo...@gmail.com> Cc: ceph-de...@v

[PATCH v4 22/26] libceph: Replace CURRENT_TIME with ktime_get_real_ts

2016-08-14 Thread Deepa Dinamani
struct timespec64 in a separate patch. Signed-off-by: Deepa Dinamani Reviewed-by: Arnd Bergmann Cc: "Yan, Zheng" Cc: Sage Weil Cc: Ilya Dryomov Cc: ceph-de...@vger.kernel.org --- net/ceph/messenger.c | 6 -- net/ceph/osd_client.c | 4 ++-- 2 files changed, 6 insertions(+), 4

[PATCH v4 24/26] fnic: Use time64_t to represent trace timestamps

2016-08-14 Thread Deepa Dinamani
trace timestamps use struct timespec and CURRENT_TIME which are not y2038 safe. These timestamps are only part of the trace log on the machine and are not shared with the fnic. Replace then with y2038 safe struct timespec64 and ktime_get_real_ts64(), respectively. Signed-off-by: Deepa Dinamani

[PATCH v4 24/26] fnic: Use time64_t to represent trace timestamps

2016-08-14 Thread Deepa Dinamani
trace timestamps use struct timespec and CURRENT_TIME which are not y2038 safe. These timestamps are only part of the trace log on the machine and are not shared with the fnic. Replace then with y2038 safe struct timespec64 and ktime_get_real_ts64(), respectively. Signed-off-by: Deepa Dinamani

[PATCH v4 13/26] fs: cifs: Replace CURRENT_TIME with ktime_get_real_ts()

2016-08-14 Thread Deepa Dinamani
timestamps for cifs is transitioned to use timespec64. Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com> Reviewed-by: Arnd Bergmann <a...@arndb.de> Cc: Steve French <sfre...@samba.org> --- fs/cifs/cifsencrypt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) di

[PATCH v4 13/26] fs: cifs: Replace CURRENT_TIME with ktime_get_real_ts()

2016-08-14 Thread Deepa Dinamani
timestamps for cifs is transitioned to use timespec64. Signed-off-by: Deepa Dinamani Reviewed-by: Arnd Bergmann Cc: Steve French --- fs/cifs/cifsencrypt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/cifs/cifsencrypt.c b/fs/cifs/cifsencrypt.c index 8347c90..fd01bf0 100644

[GIT PULL] [PATCH v4 00/26] Delete CURRENT_TIME and CURRENT_TIME_SEC macros

2016-08-14 Thread Deepa Dinamani
) Deepa Dinamani (26): vfs: Add current_time() api fs: proc: Delete inode time initializations in proc_alloc_inode() fs: Replace CURRENT_TIME with current_time() for inode timestamps fs: Replace CURRENT_TIME_SEC with current_time() for inode timestamps fs: Replace

[GIT PULL] [PATCH v4 00/26] Delete CURRENT_TIME and CURRENT_TIME_SEC macros

2016-08-14 Thread Deepa Dinamani
) Deepa Dinamani (26): vfs: Add current_time() api fs: proc: Delete inode time initializations in proc_alloc_inode() fs: Replace CURRENT_TIME with current_time() for inode timestamps fs: Replace CURRENT_TIME_SEC with current_time() for inode timestamps fs: Replace

[GIT PULL] Delete CURRENT_TIME_SEC and replace current_fs_time()

2016-06-30 Thread Deepa Dinamani
current_time-v4.7-rc5 for you to fetch changes up to 1025409988864abcad2670461cf8d5a0fa08d317: time: Delete CURRENT_TIME_SEC (2016-06-30 18:27:56 -0700) Deepa Dinamani (24): vfs: Add current_time() api fs: proc: Delete inode

[GIT PULL] Delete CURRENT_TIME_SEC and replace current_fs_time()

2016-06-30 Thread Deepa Dinamani
current_time-v4.7-rc5 for you to fetch changes up to 1025409988864abcad2670461cf8d5a0fa08d317: time: Delete CURRENT_TIME_SEC (2016-06-30 18:27:56 -0700) Deepa Dinamani (24): vfs: Add current_time() api fs: proc: Delete inode

[PATCH v3 03/24] fs: Replace CURRENT_TIME with current_time() for inode timestamps

2016-06-25 Thread Deepa Dinamani
to change timestamps in different inodes, it is because they share the same time granularity. Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com> Acked-by: Felipe Balbi <ba...@kernel.org> Acked-by: Steven Whitehouse <swhit...@redhat.com> Acked-by: Ryusuke Konishi <konishi.

[PATCH v3 03/24] fs: Replace CURRENT_TIME with current_time() for inode timestamps

2016-06-25 Thread Deepa Dinamani
to change timestamps in different inodes, it is because they share the same time granularity. Signed-off-by: Deepa Dinamani Acked-by: Felipe Balbi Acked-by: Steven Whitehouse Acked-by: Ryusuke Konishi Acked-by: David Sterba --- arch/powerpc/platforms/cell/spufs/inode.c | 2 +- arch/s390

[PATCH v3 00/24] Delete CURRENT_TIME_SEC and replace current_fs_time()

2016-06-25 Thread Deepa Dinamani
in inode. * Minor fixes according to Arnd's comments. * Leave out the fnic and deletion of CURRENT_TIME to be submitted after 4.8 rc1. Deepa Dinamani (24): vfs: Add current_time() api fs: proc: Delete inode time initializations in proc_alloc_inode() fs: Replace CURRENT_TIME with current_time

[PATCH v3 00/24] Delete CURRENT_TIME_SEC and replace current_fs_time()

2016-06-25 Thread Deepa Dinamani
in inode. * Minor fixes according to Arnd's comments. * Leave out the fnic and deletion of CURRENT_TIME to be submitted after 4.8 rc1. Deepa Dinamani (24): vfs: Add current_time() api fs: proc: Delete inode time initializations in proc_alloc_inode() fs: Replace CURRENT_TIME with current_time

[PATCH v3 04/24] fs: Replace CURRENT_TIME_SEC with current_time() for inode timestamps

2016-06-25 Thread Deepa Dinamani
range checking is introduced. This works because alloc_super() fills in the the s_time_gran in super block to NSEC_PER_SEC. Also note that filesystem specific times like the birthtime, creation time that were using same interfaces to obtain time retain same logistics. Signed-off-by: Deepa

[PATCH v3 04/24] fs: Replace CURRENT_TIME_SEC with current_time() for inode timestamps

2016-06-25 Thread Deepa Dinamani
range checking is introduced. This works because alloc_super() fills in the the s_time_gran in super block to NSEC_PER_SEC. Also note that filesystem specific times like the birthtime, creation time that were using same interfaces to obtain time retain same logistics. Signed-off-by: Deepa

[PATCH v3 01/24] vfs: Add current_time() api

2016-06-25 Thread Deepa Dinamani
-off-by: Deepa Dinamani <deepa.ker...@gmail.com> --- fs/inode.c | 23 +++ include/linux/fs.h | 1 + 2 files changed, 24 insertions(+) diff --git a/fs/inode.c b/fs/inode.c index e171f7b..80b6898 100644 --- a/fs/inode.c +++ b/fs/inode.c @@ -2043,3 +2043,26 @

[PATCH v3 05/24] fs: Replace current_fs_time() with current_time()

2016-06-25 Thread Deepa Dinamani
to current_fs_time() to use the new current_time() function instead. current_fs_time() will be deleted. Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com> --- drivers/char/sonypi.c | 2 +- drivers/platform/x86/sony-laptop.c | 2 +- fs/attr.c | 2

[PATCH v3 01/24] vfs: Add current_time() api

2016-06-25 Thread Deepa Dinamani
-off-by: Deepa Dinamani --- fs/inode.c | 23 +++ include/linux/fs.h | 1 + 2 files changed, 24 insertions(+) diff --git a/fs/inode.c b/fs/inode.c index e171f7b..80b6898 100644 --- a/fs/inode.c +++ b/fs/inode.c @@ -2043,3 +2043,26 @@ void inode_nohighmem(struct inode

[PATCH v3 05/24] fs: Replace current_fs_time() with current_time()

2016-06-25 Thread Deepa Dinamani
to current_fs_time() to use the new current_time() function instead. current_fs_time() will be deleted. Signed-off-by: Deepa Dinamani --- drivers/char/sonypi.c | 2 +- drivers/platform/x86/sony-laptop.c | 2 +- fs/attr.c | 2 +- fs/bad_inode.c

<    4   5   6   7   8   9   10   11   12   13   >