2106.
Assumption is that the usage of v0.90 will be deprecated by
year 2106.
Timestamp fields in the on disk meta data for v1.0 version already
use 64 bit data types. Remove the truncation of the bits while
writing to or reading from these from the disk.
Signed-off-by: Deepa Dinamani <deepa.
to isolate the handling of the
testing timing measurement.
The official testusb userspace tool can be changed in a separate patch
to reflect the __u32 changes as well. It can use the usbtest_param_32
struct, since 32 bit seconds is long enough for test durations.
Signed-off-by: Deepa Dinamani
64 bit time support is in place for all filesystems.
Enable CONFIG_USES_64BIT_TIME to start using 64 bit time
everywhere.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
---
fs/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/Kconfig b/fs/Kconfig
nality.
Patches 8-15 are only included to provide a complete picture.
Deepa Dinamani (15):
fs: add Kconfig entry CONFIG_FS_USES_64BIT_TIME
vfs: Change all structures to support 64 bit time
kernel: time: Add macros and functions to support 64 bit time
vfs: Add support for vfs code to use 64 bi
will
be used directly.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
---
include/linux/fs.h | 55 +++---
include/linux/stat.h | 6 +++---
include/linux/time64.h | 21 +++
3 files changed, 72 insertions(+), 10 deletions(-)
diff
struct timespec is not y2038 safe.
The ext4 uses time_extra fields to extend {a,c,m,cr} times until
2446.
Use struct inode_timespec to replace timespec.
inode_timespec will eventually be replaced by struct timespec64
when CONFIG_FS_USES_64BIT_TIME is enabled.
Signed-off-by: Deepa Dinamani
Substitute inode_timespec aliases with timespec64.
Since CONFIG_FS_USES_64BIT_TIME is enabled, internally
all inode_timespec references are using timespec64
already.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
---
fs/cifs/cache.c | 4 ++--
fs/cifs/cifsglob.h | 6 +++---
f
All file system code is using 64 bit time already and this config
is no longer required.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
---
fs/Kconfig | 10 --
1 file changed, 10 deletions(-)
diff --git a/fs/Kconfig b/fs/Kconfig
index bfeefce..922893f 100644
--- a/fs/K
. This means we can
get away with 32 bit unsigned sec field. But, the sec field uses
long long to maintain uniformity in the kernel, where everyone
uses the theoretical max.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
---
fs/cifs/cache.c | 16 -
fs/cifs/cifsencrypt.
Now that CONFIG_FS_USES_64BIT_TIME is enabled, the aliases
for inode_timespec are no longer used and can be removed.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
---
include/linux/time64.h | 21 -
1 file changed, 21 deletions(-)
diff --git a/include/linux/ti
CONFIG_FS_USES_64BIT_TIME is
turned on.
Use a larger data type for seconds in fat_time_fat2unix().
This extends timestamps beyond the year 2038.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
---
fs/fat/dir.c | 7 +--
fs/fat/fat.h | 8 +---
fs/fat/file.c
Substitute inode_timespec aliases with timespec64.
Since CONFIG_FS_USES_64BIT_TIME is enabled, internally
all inode_timespec references are using timespec64
already.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
---
fs/attr.c| 2 +-
fs/bad_inode.c | 2
Substitute inode_timespec aliases with timespec64.
Since CONFIG_FS_USES_64BIT_TIME is enabled, internally
all inode_timespec references are using timespec64
already.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
Conflicts:
kernel/time/time.c
Conflicts:
kerne
This config will be used to #ifdef code that will be required for
switching over all file systems to use 64 bit time.
The config should remain turned off until all the support in vfs
and other file systems has been added.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
---
fs/K
to timespec_trunc() to fs_time_trunc().
The latter supports range checking on timestamps.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
---
fs/attr.c| 15 +++---
fs/bad_inode.c | 10 +++--
fs/binfmt_misc.c | 7 +--
fs/i
kernel does
not internally use timestamps and it cannot decide how catastrophic
these timestamp clamps can be for the on disk file system or
user space applications that use it.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
---
fs/libfs.c | 5 ++
fs/s
Substitute inode_timespec aliases with timespec64.
Since CONFIG_FS_USES_64BIT_TIME is enabled, internally
all inode_timespec references are using timespec64
already.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
---
fs/fat/dir.c | 4 ++--
fs/fat/fat.h | 6 +++-
Substitute inode_timespec aliases with timespec64.
Since CONFIG_FS_USES_64BIT_TIME is enabled, internally
all inode_timespec references are using timespec64
already.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
---
fs/ext4/ext4.h| 14 +++---
fs/ext4/extents.
On Thu, Jan 07, 2016 at 09:50:30AM +0100, Michael Adam wrote:
> Hi,
>
> the patch contains a conflict resolution artifact..
>
Thanks, I've fixed it in my tree now.
I will wait to hear other comments before I send an update.
-Deepa
--
To unsubscribe from this list: send the line "unsubscribe
.
This allows for overriding of the default --no-show-diff
option through SPFLAGS.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
Cc: Julia Lawall <julia.law...@lip6.fr>
Cc: Gilles Muller <gilles.mul...@lip6.fr>
Cc: Nicolas Palix <nicolas.pa...@imag.fr>
Cc: Michal Marek <mm
>> >> Documentation/coccinelle.txt suggests using the SPFLAGS
>> >> make variable to pass additional options to spatch.
>> >>
>> >> Reorder the way SPFLAGS is added to FLAGS, to allow
>> >> for options in the SPFLAGS to override the default
>> >> --very-quiet option.
>> >>
>> >> Similarly,
>> Documentation/coccinelle.txt suggests using the SPFLAGS
>> make variable to pass additional options to spatch.
>>
>> Reorder the way SPFLAGS is added to FLAGS, to allow
>> for options in the SPFLAGS to override the default
>> --very-quiet option.
>>
>> Similarly, rearrage the FLAGS for org or
On Fri, Jun 10, 2016 at 3:21 PM, Arnd Bergmann <a...@arndb.de> wrote:
> On Wednesday, June 8, 2016 10:04:45 PM CEST Deepa Dinamani wrote:
>> CURRENT_TIME_SEC is not y2038 safe. current_fs_time() will
>> be transitioned to use 64 bit time along with vfs in a
>> separate
>>boot_time is represented as a struct timespec.
>>struct timespec and CURRENT_TIME are not y2038 safe.
>>Overall, the plan is to use timespec64 for all internal
>>kernel representation of timestamps.
>>CURRENT_TIME will also be removed.
>>Use struct timespec64 to represent boot_time.
>>And,
On Thu, Jun 9, 2016 at 12:15 PM, Linus Torvalds
wrote:
> On Thu, Jun 9, 2016 at 12:35 AM, Jan Kara wrote:
>>
>> You create line longer than 80 characters for affs and reiserfs. Please
>> wrap those lines properly.
>
> No, please do *NOT* do things
On Thu, Jun 9, 2016 at 12:41 AM, Jan Kara <j...@suse.cz> wrote:
> On Wed 08-06-16 22:04:50, Deepa Dinamani wrote:
>> Logical Volume Integrity format is described to have the
>> same timestamp format for "Recording Date and time" as
>> the other [a,c,m]times
On Thu, Jun 9, 2016 at 7:31 AM, Steve Grubb <sgr...@redhat.com> wrote:
> On Wednesday, June 08, 2016 10:05:01 PM Deepa Dinamani wrote:
>> Audit timestamps are recorded in string format into
>> an audit buffer for a given context.
>> These mark the entry timestamps for
On Fri, Jun 10, 2016 at 3:19 PM, Arnd Bergmann <a...@arndb.de> wrote:
> On Thursday, June 9, 2016 11:45:01 AM CEST Linus Torvalds wrote:
>> On Wed, Jun 8, 2016 at 10:04 PM, Deepa Dinamani <deepa.ker...@gmail.com>
>> wrote:
>> > CURRENT_TIME_SEC
On Tue, Jun 14, 2016 at 2:18 PM, John Stultz <john.stu...@linaro.org> wrote:
> On Wed, Jun 8, 2016 at 10:04 PM, Deepa Dinamani <deepa.ker...@gmail.com>
> wrote:
>> time_to_tm() takes time_t as an argument.
>> time_t is not y2038 safe.
>> Add time64_to_tm(
nded to do range checks.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
Cc: Jan Kara <j...@suse.com>
---
fs/udf/super.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/udf/super.c b/fs/udf/super.c
index 4942549..482a610 100644
--- a/fs/udf/super.
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
() for the boot_time value.
boot_time is used to construct the nfs client boot verifier.
This will now wrap in 2106 instead of 2038 on 32-bit systems.
The server only relies on the value being persistent until
reboot so the wrapping should be fine.
Signed-off-by: Deepa Dinamani <deepa.
macro bug fixes are being handled in a series separate from transitioning
vfs to use 64 bit timestamps.
Some reviewers have requested not to change line wrapping only for the
longer function call names, so checkpatch warnings for such cases are
ignored in the patch series.
Deepa Dinamani (21):
fs
in the super_block.
The granularity check to call current_fs_time() or
CURRENT_TIME_SEC is not required.
Use current_fs_time() to obtain timestamps
unconditionally.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
Cc: Artem Bityutskiy <dedeki...@gmail.com>
Cc: Adrian Hunter <adrian.hun..
when 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
is not required.
Use current_fs_time() to obtain timestamps
unconditionally.
Quota files are assumed to be on the same filesystem.
Hence, use current_fs_time() for these files as well.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
Cc: "Theodore Ts'o" <ty...@mit.edu>
Cc: Andre
jfs uses nanosecond granularity for filesystem timestamps.
Only this assignemt is not using nanosecond granularity.
Use current_fs_time() to get the right nanosecond granularity.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
Cc: Dave Kleikamp <sha...@kernel.org>
Cc:
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
time_to_tm() takes time_t as an argument.
time_t is not y2038 safe.
Add time64_to_tm() that takes time64_t as an argument
which is y2038 safe.
The plan is to eventually replace all calls to time_to_tm()
by time64_to_tm().
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
Cc: John
1024 characters.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
Cc: Paul Moore <p...@paul-moore.com>
Cc: Eric Paris <epa...@redhat.com>
Cc: linux-au...@redhat.com
---
include/linux/audit.h | 4 ++--
kernel/audit.c| 10 +-
kernel/audit.h| 2 +-
CURRENT_TIME is not y2038 safe.
Use y2038 safe ktime_get_real_seconds() here for timestamps.
struct heartbeat_block's hb_seq is already 64 bits wide and
accommodates times beyond y2038.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
Cc: Mark Fasheh <mfas...@suse.com>
Cc: Joe
timestamps for cifs is transitioned
to use timespec64.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
Cc: Steve French <sfre...@samba.org>
Cc: linux-c...@vger.kernel.org
Cc: samba-techni...@lists.samba.org
---
fs/cifs/cifsencrypt.c | 4 +++-
1 file changed, 3 insertions(+), 1 delet
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>
Cc: Jaegeuk Kim <jaeg...@kernel.org>
Cc: Changma
of the effort current_fs_time() will be
extended to do range checks. Hence, it is necessary for all
file system timestamps to use current_fs_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.
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 Dinamani
of the effort current_fs_time() will be
extended to do range checks. Hence, it is necessary for all
file system timestamps to use current_fs_time().
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
Cc: Ilya Dryomov <idryo...@gmail.com>
Cc: Sage Weil <s...@redhat.com>
Cc: Alex Elder <
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
struct timespec64
in a separate patch.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
Cc: "Yan, Zheng" <z...@redhat.com>
Cc: Sage Weil <s...@redhat.com>
Cc: Ilya Dryomov <idryo...@gmail.com>
Cc: ceph-de...@vger.kernel.org
---
net/ceph/messenger.c | 6 --
struct timespec64
in a separate patch.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
Cc: "Yan, Zheng" <z...@redhat.com>
Cc: Sage Weil <s...@redhat.com>
Cc: Ilya Dryomov <idryo...@gmail.com>
Cc: ceph-de...@vger.kernel.org
---
net/ceph/osd_client.c | 4 ++--
All uses of these macors have been replaced by other
time functions.
These macros are also not y2038 safe.
And, all its usecases can be fulfilled by y2038
safe ktime_get_* variants.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
Cc: John Stultz <john.stu...@linaro.org>
Cc: Tho
On Wed, Jun 22, 2016 at 6:54 AM, Arnd Bergmann <a...@arndb.de> wrote:
> On Sunday, June 19, 2016 5:27:08 PM CEST Deepa Dinamani wrote:
>> mutex_lock(>s_alloc_mutex);
>> lvidiu->impIdent.identSuffix[0] = UDF_OS_CLASS_UNIX;
>> lvidiu->impId
On Wed, Jun 22, 2016 at 7:09 AM, Arnd Bergmann <a...@arndb.de> wrote:
> On Sunday, June 19, 2016 5:27:18 PM CEST Deepa Dinamani wrote:
>> trace timestamps use struct timespec and CURRENT_TIME which
>> are not y2038 safe.
>> These timestamps are only part of t
> This version now looks ok to me.
>
> I do have a comment (or maybe just a RFD) for future work.
>
> It does strike me that once we actually change over the inode times to
> use timespec64, the calling conventions are going to be fairly
> horrendous on most 32-bit architectures.
>
> Gcc handles
On Fri, Jun 17, 2016 at 1:52 PM, John Stultz <john.stu...@linaro.org> wrote:
> On Wed, Jun 15, 2016 at 10:44 AM, Deepa Dinamani <deepa.ker...@gmail.com>
> wrote:
>> On Tue, Jun 14, 2016 at 2:18 PM, John Stultz <john.stu...@linaro.org> wrote:
>>> On Wed,
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 <sha...@kernel.org>
Cc:
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.com>
Reviewed-by: Jan Kara <j...@suse.cz>
---
fs/udf/super.c | 9 ++---
1 file changed, 6 inserti
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
timespec64 as well.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
Cc: Chris Mason <c...@fb.com>
Cc: Josef Bacik <jba...@fb.com>
Cc: David Sterba <dste...@suse.com>
Cc: linux-bt...@vger.kernel.org
Acked-by: David Sterba <dste...@suse.com>
---
fs/btrfs/root-tre
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>
Cc: Jaegeuk Kim <jaeg...@kernel.org>
Cc: Changma
-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 @
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
timestamps for cifs is transitioned
to use timespec64.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
Cc: Steve French <sfre...@samba.org>
---
fs/cifs/cifsencrypt.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/fs/cifs/cifsencrypt.c b/fs/cifs/cifsencrypt.c
i
() 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>
Cc: "Th
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
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.com&
() 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]
---
fs/proc/inode.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/fs/proc/inode.c b/fs/proc/inode.c
index 6b18
struct timespec64
in a separate patch.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
Cc: Ilya Dryomov <idryo...@gmail.com>
Cc: Sage Weil <s...@redhat.com>
Cc: Alex Elder <el...@kernel.org>
Cc: ceph-de...@vger.kernel.org
---
drivers/block/rbd.c | 2 +-
1 file ch
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>
Cc: John Stultz <john.stu...@linaro.org>
Cc: Thomas
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>
Cc:
of ktime_t for the authsys_parms
stamp field.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
Cc: Trond Myklebust <trond.mykleb...@primarydata.com>
Cc: Anna Schumaker <anna.schuma...@netapp.com>
Cc: linux-...@vger.kernel.org
---
fs/nfs/client.c | 2 +-
fs/nfs/netns.h
() 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>
Cc: "Yan, Zheng" <z...@redhat.com>
Cc: Sage Weil <s...@redhat.com>
Cc: Ilya
struct timespec64
in a separate patch.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
Cc: "Yan, Zheng" <z...@redhat.com>
Cc: Sage Weil <s...@redhat.com>
Cc: Ilya Dryomov <idryo...@gmail.com>
Cc: ceph-de...@vger.kernel.org
---
net/ceph/messenger.c | 6 --
All uses of CURRENT_TIME_SEC macro have been replaced by
other time functions. This macro is also not y2038 safe.
And, all its use cases can be fulfilled by y2038 safe
ktime_get_* variants.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
Cc: John Stultz <john.stu...@linaro.org>
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
CURRENT_TIME is not y2038 safe.
Use y2038 safe ktime_get_real_seconds() here for timestamps.
struct heartbeat_block's hb_seq and deletetion time are already
64 bits wide and accommodate times beyond y2038.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
Cc: Mark Fasheh <mfas...
1024 characters.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
Cc: Paul Moore <p...@paul-moore.com>
Cc: Eric Paris <epa...@redhat.com>
Cc: linux-au...@redhat.com
Acked-by: Paul Moore <p...@paul-moore.com>
Acked-by: Richard Guy Briggs <r...@redhat.com>
-
>> @@ -84,6 +84,8 @@ static int create_default_filesystem(struct ubifs_info *c)
>> int min_leb_cnt = UBIFS_MIN_LEB_CNT;
>> long long tmp64, main_bytes;
>> __le64 tmp_le64;
>> + __le32 tmp_le32;
>> + struct timespec ts;
>>
>> /* Some functions called from
>> @@ -3727,6 +3727,7 @@ static int ext4_cross_rename(struct inode *old_dir,
>> struct dentry *old_dentry,
>> };
>> u8 new_file_type;
>> int retval;
>> + struct timespec ctime;
>>
>> if ((ext4_encrypted_inode(old_dir) ||
>>
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.
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
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
CURRENT_TIME macro is not appropriate for filesystems as it
doesn't use the right granularity for filesystem timestamps.
Use current_fs_time() instead.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
Cc: Chris Mason <c...@fb.com>
Cc: Josef Bacik <jba...@fb.com>
Cc:
to be represented corretly.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
---
fs/btrfs/file.c| 6 +++---
fs/btrfs/ioctl.c | 4 ++--
fs/btrfs/root-tree.c | 2 +-
fs/btrfs/transaction.c | 2 +-
4 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/fs/btrfs/file.c b/fs
and this needs to change along with vfs inode times.
All the accesses to or from struct inode timestamps and
current_fs_time() are also changed to vfs_time.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
---
fs/xfs/xfs_inode.c | 2 +-
fs/xfs/xfs_iops.c| 2 +-
type for accessing inode timestamps.
This is necessary as these accesses need to switch to
using 64 bit timestamps along with vfs.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
---
fs/ceph/cache.c | 2 +-
fs/ceph/caps.c | 6 +++---
fs/ceph/dir.c| 4 ++--
fs/ceph/
are passed in as arguments to functions
using inode timestamps. Hence, these need to change along
with vfs to support 64 bit timestamps. vfs_time helps do
this transition.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
---
include/linux/ceph/messenger.h | 1 +
include/linux/ceph/osd_cl
same functions
it is necessary to use vfs_time here as well.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
---
include/linux/ceph/decode.h | 11 ++-
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/include/linux/ceph/decode.h b/include/linux/ceph/decode.h
index 6
callback function for inode operations.
This accepts inode timestamp as an argument.
And, needs to switch to 64 bit time representation along with vfs.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
---
fs/btrfs/inode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --gi
be confused because
of 1.
3. Has the same problem as changing all filesystems to 64 bit:
the switch over to timespec64 has to be done globally in a single,
huge patch for some filesystems.
Deepa Dinamani (8):
vfs: Add vfs_time abstractions
fs: cifs: Change auxdata to struct timespec64
interfacing with
vfs.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
---
include/linux/fs.h | 21 +
1 file changed, 21 insertions(+)
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 4af612f..56e6373 100644
--- a/include/linux/fs.h
+++ b/include/linu
in the patch are passed into functions that also take
inode times as argument. Hence, using vfs_time aliases here is
necessary so that they can change to use 64 bit time along with
vfs.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
---
fs/cifs/cifsencrypt.c | 2 +-
fs/cifs/cifssmb.c
max on DOS times is 2107,
its APIs only support until the year 2099. This means we can
get away with 32 bit unsigned sec field. But, the sec field uses
long long to maintain uniformity in the kernel as the
theoretical max is used everywhere else.
Signed-off-by: Deepa Dinamani <deepa.
. Use vfs_time data type to make the transition to
64 bit time along with the other inode timestamps.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
---
fs/btrfs/btrfs_inode.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/btrfs/btrfs_inode.h b/fs/btrfs/btrfs_i
in is a constant with sufficient space to accommodate
auxdata.
3. The keylen subtracted from datalen is a constant and also leaves in
sufficient space for increase.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
---
fs/cifs/cache.c | 4 ++--
1 file changed, 2 insertions(+), 2 del
only includes patches for steps 1 and 2.
Concerns
1.Before the vfs layer is done, it might be confusing to developers
as individual filesystems now will have two options for access:
timespec and vfs_time type.
Deepa Dinamani (12):
vfs: Add vfs_time abstractions
fs: cifs: Change
systems, use vfs_time functions to access inode times.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
---
fs/ceph/addr.c | 20 +-
fs/ceph/cache.c | 4 +--
fs/ceph/caps.c | 4 +--
fs/ceph/file.c | 4 ++-
fs/ceph/inode.c
vfs_time access functions to access
inode times.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
---
fs/cifs/cache.c | 12
fs/cifs/inode.c | 31 ++-
2 files changed, 26 insertions(+), 17 deletions(-)
diff --git a/fs/cifs/cache.c b/fs/cifs/cache.c
callback.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
---
fs/btrfs/file.c | 14 +-
fs/btrfs/inode.c | 4 ++--
2 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index 610f569..3bccb97 100644
--- a/fs/btrfs/file.c
+++ b/fs
conversions in API's interfacing with
vfs.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.com>
---
include/linux/fs.h | 19 +++
1 file changed, 19 insertions(+)
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 4af612f..ec25603 100644
--- a/include/linux/fs.h
systems, use vfs_time functions to access inode times.
current_fs_time() will change along with vfs timestamp data
type changes.
xfs_vn_update_time() is a .update callback for inode operations
and this needs to change along with vfs inode times.
Signed-off-by: Deepa Dinamani <deepa.ker...@gmail.
1 - 100 of 1238 matches
Mail list logo