Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1430961
| From | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [Y2038] [PATCH v2 07/24] fs: ubifs: Replace CURRENT_TIME_SEC with current_time |
| Date | 2016-06-24 23:20 +0200 |
| Message-ID | <rNGG5-50E-5@gated-at.bofh.it> (permalink) |
| References | <rLVgd-11C-1@gated-at.bofh.it> <rMQHv-47X-23@gated-at.bofh.it> <rNGwp-4Xb-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Friday, June 24, 2016 2:05:11 PM CEST Deepa Dinamani wrote: > > This part of the patch seems independent of the rest, as you don't actually > > use current_time() here, or assign the timespec to an inode. > > > > I'd suggest either leaving this part out of the patch series for now, > > or making it a separate patch that uses timespec64 directly. > > This is actually the root inode which is created and written to disk. > We actually want to use current_time() here, but this is not cached. > So we don't have a vfs inode. > > struct ubifs_ino_node represents inode format on the disk. > I thought it would be odd to fill this with timespec64 only here. > My plan was to switch it over to timespec64 when all of ubifs changes > to use timespec64. It is a bit odd, but I can't think of why that would be a problem. All the other instances have to wait until the inode timestamps are converted but this one does not. > This also was helping the current series as it let me delete > CURRENT_TIME macros. > I can add a comment to suggest this in code. > > But, what you suggest should also work fine since the on disk > representation is big enough to use timespec64 already. > Let me know if you want me to drop this change for now as we delete > CURRENT_TIME macros after rc1 now. I'd leave it in. Arnd
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH v2 07/24] fs: ubifs: Replace CURRENT_TIME_SEC with current_time Deepa Dinamani <deepa.kernel@gmail.com> - 2016-06-24 23:10 +0200 Re: [Y2038] [PATCH v2 07/24] fs: ubifs: Replace CURRENT_TIME_SEC with current_time Arnd Bergmann <arnd@arndb.de> - 2016-06-24 23:20 +0200
csiph-web