($INBOX_DIR/description missing)
 help / color / Atom feed
* [PATCH 0/1] Use inode_lock/unlock class of provided APIs in filesystems
@ 2019-12-05 10:39 Ritesh Harjani
  2019-12-05 10:39 ` [PATCH 1/1] fs: " Ritesh Harjani
  2019-12-17  8:12 ` [PATCH 0/1] " Ritesh Harjani
  0 siblings, 2 replies; 6+ messages in thread
From: Ritesh Harjani @ 2019-12-05 10:39 UTC (permalink / raw)
  To: willy, linux-fsdevel, jlayton, viro
  Cc: ceph-devel, linux-btrfs, linux-nfs, devel, linux-unionfs, Ritesh Harjani

Matthew Wilcox in [1] suggested that it will be a good idea
to define some missing API instead of directly using i_rwsem in
filesystems drivers for lock/unlock/downgrade purposes.

This patch does that work. No functionality change in this patch.

After this there are only lockdep class of APIs at certain places
in filesystems which are directly using i_rwsem and second is XFS,
but it seems to be anyway defining it's own xfs_ilock/iunlock set
of APIs and 'iolock' naming convention for this lock.

[1]: https://www.spinics.net/lists/linux-ext4/msg68689.html

Ritesh Harjani (1):
  fs: Use inode_lock/unlock class of provided APIs in filesystems

 fs/btrfs/delayed-inode.c |  2 +-
 fs/btrfs/ioctl.c         |  4 ++--
 fs/ceph/io.c             | 24 ++++++++++++------------
 fs/nfs/io.c              | 24 ++++++++++++------------
 fs/orangefs/file.c       |  4 ++--
 fs/overlayfs/readdir.c   |  2 +-
 fs/readdir.c             |  4 ++--
 include/linux/fs.h       | 21 +++++++++++++++++++++
 8 files changed, 53 insertions(+), 32 deletions(-)

-- 
2.20.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, back to index

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-05 10:39 [PATCH 0/1] Use inode_lock/unlock class of provided APIs in filesystems Ritesh Harjani
2019-12-05 10:39 ` [PATCH 1/1] fs: " Ritesh Harjani
2019-12-05 13:38   ` Matthew Wilcox
2019-12-05 13:42   ` David Sterba
2019-12-05 16:08   ` Jeff Layton
2019-12-17  8:12 ` [PATCH 0/1] " Ritesh Harjani

($INBOX_DIR/description missing)

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-unionfs/0 linux-unionfs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-unionfs linux-unionfs/ https://lore.kernel.org/linux-unionfs \
		linux-unionfs@vger.kernel.org
	public-inbox-index linux-unionfs

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-unionfs


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git