* Re: [PATCH v2 08/92] fs: new helper: simple_rename_timestamp [not found] ` <20230705185812.579118-3-jlayton@kernel.org> @ 2023-08-30 0:19 ` Al Viro 2023-08-30 0:48 ` Jeff Layton 0 siblings, 1 reply; 3+ messages in thread From: Al Viro @ 2023-08-30 0:19 UTC (permalink / raw) To: Jeff Layton Cc: jk, arnd, mpe, npiggin, christophe.leroy, hca, gor, agordeev, borntraeger, svens, gregkh, arve, tkjos, maco, joel, brauner, cmllamas, surenb, dennis.dalessandro, jgg, leon, bwarrum, rituagar, ericvh, lucho, asmadeus, linux_oss, dsterba, dhowells, marc.dionne, raven, luisbg, salah.triki, aivazian.tigran, ebiederm, keescook, clm, josef, xiubli, idryomov, jaharkes, coda, jlbec, hch, nico, rafael, code, ardb, xiang, chao, huyue2, jefflexu, linkinjeon, sj1557.seo, jack, tytso, adilger.kernel, jaegeuk, hirofumi, miklos, rpeterso, agruenba, richard, anton.ivanov, johannes, mikulas, mike.kravetz, muchun.song, dwmw2, shaggy, tj, trond.myklebust, anna, chuck.lever, neilb, kolga, Dai.Ngo, tom, konishi.ryusuke, anton, almaz.alexandrovich, mark, joseph.qi, me, hubcap, martin, amir73il, mcgrof, yzaikin, tony.luck, gpiccoli, al, sfrench, pc, lsahlber, sprasad, senozhatsky, phillip, rostedt, mhiramat, dushistov, hdegoede, djwong, dlemoal, naohiro.aota, jth, ast, daniel, andrii, martin.lau, song, yhs, john.fastabend, kpsingh, sdf, haoluo, jolsa, hughd, akpm, davem, edumazet, kuba, pabeni, john.johansen, paul, jmorris, serge, stephen.smalley.work, eparis, jgross, stern, lrh2000, sebastian.reichel, wsa+renesas, quic_ugoswami, quic_linyyuan, john, error27, quic_uaggarwa, hayama, jomajm, axboe, dhavale, dchinner, hannes, zhangpeng362, slava, gargaditya08, penguin-kernel, yifeliu, madkar, ezk, yuzhe, willy, okanatov, jeffxu, linux, mirimmad17, yijiangshan, yang.yang29, xu.xin16, chengzhihao1, shr, Liam.Howlett, adobriyan, chi.minghao, roberto.sassu, linuszeng, bvanassche, zohar, yi.zhang, trix, fmdefrancesco, ebiggers, princekumarmaurya06, chenzhongjin, riel, shaozhengchao, jingyuwang_vip, linuxppc-dev, linux-kernel, linux-s390, linux-rdma, linux-usb, v9fs, linux-fsdevel, linux-afs, autofs, linux-mm, linux-btrfs, ceph-devel, codalist, ecryptfs, linux-efi, linux-erofs, linux-ext4, linux-f2fs-devel, cluster-devel, linux-um, linux-mtd, jfs-discussion, linux-nfs, linux-nilfs, linux-ntfs-dev, ntfs3, ocfs2-devel, linux-karma-devel, devel, linux-unionfs, linux-hardening, reiserfs-devel, linux-cifs, samba-technical, linux-trace-kernel, linux-xfs, bpf, netdev, apparmor, linux-security-module, selinux On Wed, Jul 05, 2023 at 02:58:11PM -0400, Jeff Layton wrote: > + * POSIX mandates that the old and new parent directories have their ctime and > + * mtime updated, and that inodes of @old_dentry and @new_dentry (if any), have > + * their ctime updated. APPLICATION USAGE Some implementations mark for update the last file status change timestamp of renamed files and some do not. Applications which make use of the last file status change timestamp may behave differently with respect to renamed files unless they are designed to allow for either behavior. So for children POSIX permits rather than mandates. Doesn't really matter; Linux behaviour had been to touch ctime on children since way back, if not since the very beginning. ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2 08/92] fs: new helper: simple_rename_timestamp 2023-08-30 0:19 ` [PATCH v2 08/92] fs: new helper: simple_rename_timestamp Al Viro @ 2023-08-30 0:48 ` Jeff Layton 0 siblings, 0 replies; 3+ messages in thread From: Jeff Layton @ 2023-08-30 0:48 UTC (permalink / raw) To: Al Viro Cc: jk, arnd, mpe, npiggin, christophe.leroy, hca, gor, agordeev, borntraeger, svens, gregkh, arve, tkjos, maco, joel, brauner, cmllamas, surenb, dennis.dalessandro, jgg, leon, bwarrum, rituagar, ericvh, lucho, asmadeus, linux_oss, dsterba, dhowells, marc.dionne, raven, luisbg, salah.triki, aivazian.tigran, ebiederm, keescook, clm, josef, xiubli, idryomov, jaharkes, coda, jlbec, hch, nico, rafael, code, ardb, xiang, chao, huyue2, jefflexu, linkinjeon, sj1557.seo, jack, tytso, adilger.kernel, jaegeuk, hirofumi, miklos, rpeterso, agruenba, richard, anton.ivanov, johannes, mikulas, mike.kravetz, muchun.song, dwmw2, shaggy, tj, trond.myklebust, anna, chuck.lever, neilb, kolga, Dai.Ngo, tom, konishi.ryusuke, anton, almaz.alexandrovich, mark, joseph.qi, me, hubcap, martin, amir73il, mcgrof, yzaikin, tony.luck, gpiccoli, al, sfrench, pc, lsahlber, sprasad, senozhatsky, phillip, rostedt, mhiramat, dushistov, hdegoede, djwong, dlemoal, naohiro.aota, jth, ast, daniel, andrii, martin.lau, song, yhs, john.fastabend, kpsingh, sdf, haoluo, jolsa, hughd, akpm, davem, edumazet, kuba, pabeni, john.johansen, paul, jmorris, serge, stephen.smalley.work, eparis, jgross, stern, lrh2000, sebastian.reichel, wsa+renesas, quic_ugoswami, quic_linyyuan, john, error27, quic_uaggarwa, hayama, jomajm, axboe, dhavale, dchinner, hannes, zhangpeng362, slava, gargaditya08, penguin-kernel, yifeliu, madkar, ezk, yuzhe, willy, okanatov, jeffxu, linux, mirimmad17, yijiangshan, yang.yang29, xu.xin16, chengzhihao1, shr, Liam.Howlett, adobriyan, chi.minghao, roberto.sassu, linuszeng, bvanassche, zohar, yi.zhang, trix, fmdefrancesco, ebiggers, princekumarmaurya06, chenzhongjin, riel, shaozhengchao, jingyuwang_vip, linuxppc-dev, linux-kernel, linux-s390, linux-rdma, linux-usb, v9fs, linux-fsdevel, linux-afs, autofs, linux-mm, linux-btrfs, ceph-devel, codalist, ecryptfs, linux-efi, linux-erofs, linux-ext4, linux-f2fs-devel, cluster-devel, linux-um, linux-mtd, jfs-discussion, linux-nfs, linux-nilfs, linux-ntfs-dev, ntfs3, ocfs2-devel, linux-karma-devel, devel, linux-unionfs, linux-hardening, reiserfs-devel, linux-cifs, samba-technical, linux-trace-kernel, linux-xfs, bpf, netdev, apparmor, linux-security-module, selinux On Wed, 2023-08-30 at 01:19 +0100, Al Viro wrote: > On Wed, Jul 05, 2023 at 02:58:11PM -0400, Jeff Layton wrote: > > > + * POSIX mandates that the old and new parent directories have their ctime and > > + * mtime updated, and that inodes of @old_dentry and @new_dentry (if any), have > > + * their ctime updated. > > APPLICATION USAGE > Some implementations mark for update the last file status change timestamp > of renamed files and some do not. Applications which make use of the > last file status change timestamp may behave differently with respect > to renamed files unless they are designed to allow for either behavior. > > So for children POSIX permits rather than mandates. Doesn't really matter; > Linux behaviour had been to touch ctime on children since way back, if > not since the very beginning. Mea culpa. You're quite correct. I'll plan to roll a small patch to update the comment over this function. Thanks! -- Jeff Layton <jlayton@kernel.org> ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [f2fs-dev] [PATCH v2 00/89] fs: new accessors for inode->i_ctime [not found] <20230705185812.579118-1-jlayton@kernel.org> [not found] ` <20230705185812.579118-3-jlayton@kernel.org> @ 2023-09-04 18:11 ` patchwork-bot+f2fs 1 sibling, 0 replies; 3+ messages in thread From: patchwork-bot+f2fs @ 2023-09-04 18:11 UTC (permalink / raw) To: Jeff Layton Cc: jk, arnd, mpe, npiggin, christophe.leroy, hca, gor, agordeev, borntraeger, svens, gregkh, arve, tkjos, maco, joel, brauner, cmllamas, surenb, dennis.dalessandro, jgg, leon, bwarrum, rituagar, ericvh, lucho, asmadeus, linux_oss, dsterba, dhowells, marc.dionne, viro, raven, luisbg, salah.triki, aivazian.tigran, ebiederm, keescook, clm, josef, xiubli, idryomov, jaharkes, coda, jlbec, hch, nico, rafael, code, ardb, xiang, chao, huyue2, jefflexu, linkinjeon, sj1557.seo, jack, tytso, adilger.kernel, jaegeuk, hirofumi, miklos, rpeterso, agruenba, richard, anton.ivanov, johannes, mikulas, mike.kravetz, muchun.song, dwmw2, shaggy, tj, trond.myklebust, anna, chuck.lever, neilb, kolga, Dai.Ngo, tom, konishi.ryusuke, anton, almaz.alexandrovich, mark, joseph.qi, me, hubcap, martin, amir73il, mcgrof, yzaikin, tony.luck, gpiccoli, al, sfrench, pc, lsahlber, sprasad, senozhatsky, phillip, rostedt, mhiramat, dushistov, hdegoede, djwong, dlemoal, naohiro.aota, jth, ast, daniel, andrii, martin.lau, song, yhs, john.fastabend, kpsingh, sdf, haoluo, jolsa, hughd, akpm, davem, edumazet, kuba, pabeni, john.johansen, paul, jmorris, serge, stephen.smalley.work, eparis, jgross, stern, lrh2000, sebastian.reichel, wsa+renesas, quic_ugoswami, quic_linyyuan, john, error27, quic_uaggarwa, hayama, jomajm, axboe, dhavale, dchinner, hannes, zhangpeng362, slava, gargaditya08, penguin-kernel, yifeliu, madkar, ezk, yuzhe, willy, okanatov, jeffxu, linux, mirimmad17, yijiangshan, yang.yang29, xu.xin16, chengzhihao1, shr, Liam.Howlett, adobriyan, chi.minghao, roberto.sassu, linuszeng, bvanassche, zohar, yi.zhang, trix, fmdefrancesco, ebiggers, princekumarmaurya06, chenzhongjin, riel, shaozhengchao, jingyuwang_vip, linuxppc-dev, linux-kernel, linux-s390, linux-rdma, linux-usb, v9fs, linux-fsdevel, linux-afs, autofs, linux-mm, linux-btrfs, ceph-devel, codalist, ecryptfs, linux-efi, linux-erofs, linux-ext4, linux-f2fs-devel, cluster-devel, linux-um, linux-mtd, jfs-discussion, linux-nfs, linux-nilfs, linux-ntfs-dev, ntfs3, ocfs2-devel, linux-karma-devel, devel, linux-unionfs, linux-hardening, reiserfs-devel, linux-cifs, samba-technical, linux-trace-kernel, linux-xfs, bpf, netdev, apparmor, linux-security-module, selinux Hello: This series was applied to jaegeuk/f2fs.git (dev) by Christian Brauner <brauner@kernel.org>: On Wed, 5 Jul 2023 14:58:09 -0400 you wrote: > v2: > - prepend patches to add missing ctime updates > - add simple_rename_timestamp helper function > - rename ctime accessor functions as inode_get_ctime/inode_set_ctime_* > - drop individual inode_ctime_set_{sec,nsec} helpers > > I've been working on a patchset to change how the inode->i_ctime is > accessed in order to give us conditional, high-res timestamps for the > ctime and mtime. struct timespec64 has unused bits in it that we can use > to implement this. In order to do that however, we need to wrap all > accesses of inode->i_ctime to ensure that bits used as flags are > appropriately handled. > > [...] Here is the summary with links: - [f2fs-dev,v2,07/92] fs: add ctime accessors infrastructure https://git.kernel.org/jaegeuk/f2fs/c/9b6304c1d537 - [f2fs-dev,v2,08/92] fs: new helper: simple_rename_timestamp https://git.kernel.org/jaegeuk/f2fs/c/0c4767923ed6 - [f2fs-dev,v2,92/92] fs: rename i_ctime field to __i_ctime https://git.kernel.org/jaegeuk/f2fs/c/13bc24457850 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-09-04 18:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20230705185812.579118-1-jlayton@kernel.org>
[not found] ` <20230705185812.579118-3-jlayton@kernel.org>
2023-08-30 0:19 ` [PATCH v2 08/92] fs: new helper: simple_rename_timestamp Al Viro
2023-08-30 0:48 ` Jeff Layton
2023-09-04 18:11 ` [f2fs-dev] [PATCH v2 00/89] fs: new accessors for inode->i_ctime patchwork-bot+f2fs
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox