* Questions about inode locks in btrfs sync and fsync.
@ 2022-02-04 15:32 Lyu Tao
0 siblings, 0 replies; only message in thread
From: Lyu Tao @ 2022-02-04 15:32 UTC (permalink / raw)
To: linux-btrfs
Hi,
I'm new to btrfs and sorry to ask a naive question about the sync and fsync in btrfs.
I browsed kernel code and found btrfs uses inode_lock in fsync() but not in sync(). Is that right? If yes, why not use inode_lock in sync() and does that mean when synchronizing a inode, other process can still write to the inode?
Looking forward to the answers.
Best,
Tao
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-02-04 15:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-04 15:32 Questions about inode locks in btrfs sync and fsync Lyu Tao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).