Skip to content

Commit

Permalink
drop linux/ufs_fs.h from userspace export and relocate it to fs/ufs/u…
Browse files Browse the repository at this point in the history
…fs_fs.h

Per previous discussions about cleaning up ufs_fs.h, people just want
this straight up dropped from userspace export.  The only remaining
consumer (silo) has been fixed a while ago to not rely on this header.
This allows use to move it completely from include/linux/ to fs/ufs/
seeing as how the only in-kernel consumer is fs/ufs/.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Cc: Jan Kara <jack@ucw.cz>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Mike Frysinger authored and Linus Torvalds committed Feb 8, 2008
1 parent bdc8078 commit e542059
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 20 deletions.
2 changes: 1 addition & 1 deletion fs/ufs/balloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*/

#include <linux/fs.h>
#include <linux/ufs_fs.h>
#include <linux/stat.h>
#include <linux/time.h>
#include <linux/string.h>
Expand All @@ -19,6 +18,7 @@
#include <linux/bitops.h>
#include <asm/byteorder.h>

#include "ufs_fs.h"
#include "ufs.h"
#include "swab.h"
#include "util.h"
Expand Down
2 changes: 1 addition & 1 deletion fs/ufs/cylinder.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
*/

#include <linux/fs.h>
#include <linux/ufs_fs.h>
#include <linux/time.h>
#include <linux/stat.h>
#include <linux/string.h>
#include <linux/bitops.h>

#include <asm/byteorder.h>

#include "ufs_fs.h"
#include "ufs.h"
#include "swab.h"
#include "util.h"
Expand Down
2 changes: 1 addition & 1 deletion fs/ufs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@

#include <linux/time.h>
#include <linux/fs.h>
#include <linux/ufs_fs.h>
#include <linux/swap.h>

#include "ufs_fs.h"
#include "ufs.h"
#include "swab.h"
#include "util.h"
Expand Down
2 changes: 1 addition & 1 deletion fs/ufs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
*/

#include <linux/fs.h>
#include <linux/ufs_fs.h>
#include <linux/buffer_head.h> /* for sync_mapping_buffers() */

#include "ufs_fs.h"
#include "ufs.h"


Expand Down
2 changes: 1 addition & 1 deletion fs/ufs/ialloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
*/

#include <linux/fs.h>
#include <linux/ufs_fs.h>
#include <linux/time.h>
#include <linux/stat.h>
#include <linux/string.h>
Expand All @@ -34,6 +33,7 @@
#include <linux/bitops.h>
#include <asm/byteorder.h>

#include "ufs_fs.h"
#include "ufs.h"
#include "swab.h"
#include "util.h"
Expand Down
2 changes: 1 addition & 1 deletion fs/ufs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@

#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/ufs_fs.h>
#include <linux/time.h>
#include <linux/stat.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/smp_lock.h>
#include <linux/buffer_head.h>

#include "ufs_fs.h"
#include "ufs.h"
#include "swab.h"
#include "util.h"
Expand Down
3 changes: 2 additions & 1 deletion fs/ufs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@

#include <linux/time.h>
#include <linux/fs.h>
#include <linux/ufs_fs.h>
#include <linux/smp_lock.h>

#include "ufs_fs.h"
#include "ufs.h"
#include "util.h"

Expand Down
2 changes: 1 addition & 1 deletion fs/ufs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@

#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/ufs_fs.h>
#include <linux/slab.h>
#include <linux/time.h>
#include <linux/stat.h>
Expand All @@ -91,6 +90,7 @@
#include <linux/mount.h>
#include <linux/seq_file.h>

#include "ufs_fs.h"
#include "ufs.h"
#include "swab.h"
#include "util.h"
Expand Down
3 changes: 2 additions & 1 deletion fs/ufs/symlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@

#include <linux/fs.h>
#include <linux/namei.h>
#include <linux/ufs_fs.h>

#include "ufs_fs.h"
#include "ufs.h"


Expand Down
2 changes: 1 addition & 1 deletion fs/ufs/truncate.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@

#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/ufs_fs.h>
#include <linux/fcntl.h>
#include <linux/time.h>
#include <linux/stat.h>
Expand All @@ -46,6 +45,7 @@
#include <linux/blkdev.h>
#include <linux/sched.h>

#include "ufs_fs.h"
#include "ufs.h"
#include "swab.h"
#include "util.h"
Expand Down
10 changes: 2 additions & 8 deletions include/linux/ufs_fs.h → fs/ufs/ufs_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,10 @@
#include <linux/stat.h>
#include <linux/fs.h>

#ifndef __KERNEL__
typedef __u64 __fs64;
typedef __u32 __fs32;
typedef __u16 __fs16;
#else
#include <asm/div64.h>
typedef __u64 __bitwise __fs64;
typedef __u32 __bitwise __fs32;
typedef __u16 __bitwise __fs16;
#endif

#define UFS_BBLOCK 0
#define UFS_BBSIZE 8192
Expand Down Expand Up @@ -197,7 +191,7 @@ typedef __u16 __bitwise __fs16;
*/
#define UFS_MINFREE 5
#define UFS_DEFAULTOPT UFS_OPTTIME

/*
* Turn file system block numbers into disk block addresses.
* This maps file system blocks to device size blocks.
Expand Down Expand Up @@ -714,7 +708,7 @@ struct ufs_cg_private_info {
__u32 c_clustersumoff;/* (u_int32) counts of avail clusters */
__u32 c_clusteroff; /* (u_int8) free cluster map */
__u32 c_nclusterblks; /* number of clusters this cg */
};
};


struct ufs_sb_private_info {
Expand Down
2 changes: 1 addition & 1 deletion fs/ufs/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

#include <linux/string.h>
#include <linux/slab.h>
#include <linux/ufs_fs.h>
#include <linux/buffer_head.h>

#include "ufs_fs.h"
#include "ufs.h"
#include "swab.h"
#include "util.h"
Expand Down
1 change: 0 additions & 1 deletion include/linux/Kbuild
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,6 @@ unifdef-y += tty.h
unifdef-y += types.h
unifdef-y += udf_fs_i.h
unifdef-y += udp.h
unifdef-y += ufs_fs.h
unifdef-y += uinput.h
unifdef-y += uio.h
unifdef-y += unistd.h
Expand Down

0 comments on commit e542059

Please sign in to comment.