]> git.karo-electronics.de Git - linux-beck.git/commit
xfs: introduce xfs_sb.c for sharing with libxfs
authorDave Chinner <dchinner@redhat.com>
Mon, 12 Aug 2013 10:49:41 +0000 (20:49 +1000)
committerBen Myers <bpm@sgi.com>
Mon, 12 Aug 2013 21:44:11 +0000 (16:44 -0500)
commitff55068c2010f39bcd899ca14b0a3d401d14da54
treee207720e153c782682f833d0c00441fda88fadb2
parent1fb7e48db6810093012873a652062648ace6b5bb
xfs: introduce xfs_sb.c for sharing with libxfs

xfs_mount.c is shared with userspace, but the only functions that
are shared are to do with physical superblock manipulations. This
means that less than 25% of the xfs_mount.c code is actually shared
with userspace. Move all the superblock functions to xfs_sb.c and
share that instead with libxfs.

Note that this will leave all the in-core transaction related
superblock counter modifications in xfs_mount.c as none of that is
shared with userspace. With a few more small changes, xfs_mount.h
won't need to be shared with userspace anymore, either.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/Makefile
fs/xfs/xfs_mount.c
fs/xfs/xfs_mount.h
fs/xfs/xfs_sb.c [new file with mode: 0644]
fs/xfs/xfs_sb.h