Skip to content

Allow fscache to work on BTRFS

NeilBrown linux-btrfs linux-fsdevel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3cachefiles: perform test on s_blocksize when opening cache file.fs/cachefiles/namei.c fs/cachefiles/rdwr.c+2 -60 replies
2/3fscache/cachefiles: optionally use SEEK_DATA instead of ->bmap.fs/cachefiles/namei.c fs/cachefiles/rdwr.c include/linux/fs.h+86 -496 replies
3/3btrfs: set FS_SUPPORTS_SEEK_HOLE flag.fs/btrfs/super.c+2 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Allow fscache to work on BTRFS

The following three patches allow fs to "cachefiles" in a BTRFS filesystem.

The first is a minor cleanup to cachefiles.
The second is the main change - it teaches cachefile to use lseek(SEEK_DATA) to find allocated blocks in a file, rather than bmap. The third patch simply enables this for btrfs.

Thanks,
NeilBrown

---

NeilBrown (3):
cachefiles: perform test on s_blocksize when opening cache file. fscache/cachefiles: optionally use SEEK_DATA instead of ->bmap.
btrfs: set FS_SUPPORTS_SEEK_HOLE flag.

 fs/btrfs/super.c      |    3 +
 fs/cachefiles/namei.c |   13 ++++-
 fs/cachefiles/rdwr.c  |  125 ++++++++++++++++++++++++++++++-------------------
 include/linux/fs.h    |    1 
 4 files changed, 88 insertions(+), 54 deletions(-)

--
Signature