aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorEvgeniy Dushistov <dushistov@mail.ru>2007-02-12 03:54:31 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-12 12:48:40 -0500
commit3313e29267414e4e3bf0d3de1caf9cb439b64aaf (patch)
tree5de4ceb0d4dcf094cbb41cf3968df564d4e88976 /include/linux
parentcbcae39fa1cc16c0fb199223f5ec1aea5f4c7b2d (diff)
[PATCH] ufs2 write: inodes write
This patch adds into write inode path function to write UFS2 inode, and modifys allocate inode path to allocate and init additional inode chunks. Also some cleanups: - remove not used parameters in some functions - remove i_gen field from ufs_inode_info structure, there is i_generation in inode structure with same purposes. Signed-off-by: Evgeniy Dushistov <dushistov@mail.ru> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/ufs_fs.h4
-rw-r--r--include/linux/ufs_fs_i.h1
2 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/ufs_fs.h b/include/linux/ufs_fs.h
index 5014604d0a50..24ce39820560 100644
--- a/include/linux/ufs_fs.h
+++ b/include/linux/ufs_fs.h
@@ -263,7 +263,7 @@ typedef __u16 __bitwise __fs16;
263 */ 263 */
264#define ufs_inotocg(x) ((x) / uspi->s_ipg) 264#define ufs_inotocg(x) ((x) / uspi->s_ipg)
265#define ufs_inotocgoff(x) ((x) % uspi->s_ipg) 265#define ufs_inotocgoff(x) ((x) % uspi->s_ipg)
266#define ufs_inotofsba(x) (ufs_cgimin(ufs_inotocg(x)) + ufs_inotocgoff(x) / uspi->s_inopf) 266#define ufs_inotofsba(x) (((u64)ufs_cgimin(ufs_inotocg(x))) + ufs_inotocgoff(x) / uspi->s_inopf)
267#define ufs_inotofsbo(x) ((x) % uspi->s_inopf) 267#define ufs_inotofsbo(x) ((x) % uspi->s_inopf)
268 268
269/* 269/*
@@ -756,7 +756,7 @@ struct ufs_sb_private_info {
756 __u32 s_npsect; /* # sectors/track including spares */ 756 __u32 s_npsect; /* # sectors/track including spares */
757 __u32 s_interleave; /* hardware sector interleave */ 757 __u32 s_interleave; /* hardware sector interleave */
758 __u32 s_trackskew; /* sector 0 skew, per track */ 758 __u32 s_trackskew; /* sector 0 skew, per track */
759 __u32 s_csaddr; /* blk addr of cyl grp summary area */ 759 __u64 s_csaddr; /* blk addr of cyl grp summary area */
760 __u32 s_cssize; /* size of cyl grp summary area */ 760 __u32 s_cssize; /* size of cyl grp summary area */
761 __u32 s_cgsize; /* cylinder group size */ 761 __u32 s_cgsize; /* cylinder group size */
762 __u32 s_ntrak; /* tracks per cylinder */ 762 __u32 s_ntrak; /* tracks per cylinder */
diff --git a/include/linux/ufs_fs_i.h b/include/linux/ufs_fs_i.h
index f50ce3b0cd52..fef77d52b029 100644
--- a/include/linux/ufs_fs_i.h
+++ b/include/linux/ufs_fs_i.h
@@ -20,7 +20,6 @@ struct ufs_inode_info {
20 __fs64 u2_i_data[15]; 20 __fs64 u2_i_data[15];
21 } i_u1; 21 } i_u1;
22 __u32 i_flags; 22 __u32 i_flags;
23 __u32 i_gen;
24 __u32 i_shadow; 23 __u32 i_shadow;
25 __u32 i_unused1; 24 __u32 i_unused1;
26 __u32 i_unused2; 25 __u32 i_unused2;