diff options
author | Dave Chinner <dchinner@redhat.com> | 2013-08-12 06:49:42 -0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2013-08-12 17:45:17 -0400 |
commit | 6898811459ff523ed256c07d1d5c54ba915d51ac (patch) | |
tree | 3079fecb7b8420aef10673d4d6b08d69645feacc /fs/xfs/Makefile | |
parent | ff55068c2010f39bcd899ca14b0a3d401d14da54 (diff) |
xfs: create xfs_bmap_util.[ch]
There is a bunch of code in xfs_bmap.c that is kernel specific and
not shared with userspace. To minimise the difference between the
kernel and userspace code, shift this unshared code to
xfs_bmap_util.c, and the declarations to xfs_bmap_util.h.
The biggest issue here is xfs_bmap_finish() - userspace has it's own
definition of this function, and so we need to move it out of
xfs_bmap.[ch]. This means several other files need to include
xfs_bmap_util.h as well.
It also introduces and interesting dance for the stack switching
code in xfs_bmapi_allocate(). The stack switching/workqueue code is
actually moved to xfs_bmap_util.c, so that userspace can simply use
a #define in a header file to connect the dots without needing to
know about the stack switch code at all.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/Makefile')
-rw-r--r-- | fs/xfs/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/Makefile b/fs/xfs/Makefile index fb14461d414e..dcd21b95cd98 100644 --- a/fs/xfs/Makefile +++ b/fs/xfs/Makefile | |||
@@ -30,6 +30,7 @@ xfs-y += xfs_aops.o \ | |||
30 | xfs_attr_inactive.o \ | 30 | xfs_attr_inactive.o \ |
31 | xfs_attr_list.o \ | 31 | xfs_attr_list.o \ |
32 | xfs_bit.o \ | 32 | xfs_bit.o \ |
33 | xfs_bmap_util.o \ | ||
33 | xfs_buf.o \ | 34 | xfs_buf.o \ |
34 | xfs_dfrag.o \ | 35 | xfs_dfrag.o \ |
35 | xfs_dir2_readdir.o \ | 36 | xfs_dir2_readdir.o \ |