diff options
author | Dave Chinner <david@fromorbit.com> | 2015-01-08 19:06:17 -0500 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2015-01-08 19:06:17 -0500 |
commit | 6bcf0939ff12464c7ea24c056826b8a26def9b06 (patch) | |
tree | 9a5301bfd6374e93342bcd0392348d4aa98ff5ff /fs/xfs | |
parent | efdca7aa3c41bce7a092019b3f675fbaa3b8d23f (diff) | |
parent | 43fd1fce9643586e0995ee5d11fb40641575348a (diff) |
Merge branch 'xfs-misc-fixes-for-3.20-2' into for-next
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/libxfs/xfs_bmap.h | 33 | ||||
-rw-r--r-- | fs/xfs/libxfs/xfs_fs.h (renamed from fs/xfs/xfs_fs.h) | 0 | ||||
-rw-r--r-- | fs/xfs/libxfs/xfs_types.h (renamed from fs/xfs/xfs_types.h) | 0 | ||||
-rw-r--r-- | fs/xfs/xfs_bmap_util.h | 37 | ||||
-rw-r--r-- | fs/xfs/xfs_dquot.h | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_iomap.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_iomap.h | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_sysctl.c | 18 |
8 files changed, 37 insertions, 57 deletions
diff --git a/fs/xfs/libxfs/xfs_bmap.h b/fs/xfs/libxfs/xfs_bmap.h index 44db6db86402..b9d8a499d2c4 100644 --- a/fs/xfs/libxfs/xfs_bmap.h +++ b/fs/xfs/libxfs/xfs_bmap.h | |||
@@ -28,6 +28,37 @@ struct xfs_trans; | |||
28 | extern kmem_zone_t *xfs_bmap_free_item_zone; | 28 | extern kmem_zone_t *xfs_bmap_free_item_zone; |
29 | 29 | ||
30 | /* | 30 | /* |
31 | * Argument structure for xfs_bmap_alloc. | ||
32 | */ | ||
33 | struct xfs_bmalloca { | ||
34 | xfs_fsblock_t *firstblock; /* i/o first block allocated */ | ||
35 | struct xfs_bmap_free *flist; /* bmap freelist */ | ||
36 | struct xfs_trans *tp; /* transaction pointer */ | ||
37 | struct xfs_inode *ip; /* incore inode pointer */ | ||
38 | struct xfs_bmbt_irec prev; /* extent before the new one */ | ||
39 | struct xfs_bmbt_irec got; /* extent after, or delayed */ | ||
40 | |||
41 | xfs_fileoff_t offset; /* offset in file filling in */ | ||
42 | xfs_extlen_t length; /* i/o length asked/allocated */ | ||
43 | xfs_fsblock_t blkno; /* starting block of new extent */ | ||
44 | |||
45 | struct xfs_btree_cur *cur; /* btree cursor */ | ||
46 | xfs_extnum_t idx; /* current extent index */ | ||
47 | int nallocs;/* number of extents alloc'd */ | ||
48 | int logflags;/* flags for transaction logging */ | ||
49 | |||
50 | xfs_extlen_t total; /* total blocks needed for xaction */ | ||
51 | xfs_extlen_t minlen; /* minimum allocation size (blocks) */ | ||
52 | xfs_extlen_t minleft; /* amount must be left after alloc */ | ||
53 | bool eof; /* set if allocating past last extent */ | ||
54 | bool wasdel; /* replacing a delayed allocation */ | ||
55 | bool userdata;/* set if is user data */ | ||
56 | bool aeof; /* allocated space at eof */ | ||
57 | bool conv; /* overwriting unwritten extents */ | ||
58 | int flags; | ||
59 | }; | ||
60 | |||
61 | /* | ||
31 | * List of extents to be free "later". | 62 | * List of extents to be free "later". |
32 | * The list is kept sorted on xbf_startblock. | 63 | * The list is kept sorted on xbf_startblock. |
33 | */ | 64 | */ |
@@ -149,6 +180,8 @@ void xfs_bmap_local_to_extents_empty(struct xfs_inode *ip, int whichfork); | |||
149 | void xfs_bmap_add_free(xfs_fsblock_t bno, xfs_filblks_t len, | 180 | void xfs_bmap_add_free(xfs_fsblock_t bno, xfs_filblks_t len, |
150 | struct xfs_bmap_free *flist, struct xfs_mount *mp); | 181 | struct xfs_bmap_free *flist, struct xfs_mount *mp); |
151 | void xfs_bmap_cancel(struct xfs_bmap_free *flist); | 182 | void xfs_bmap_cancel(struct xfs_bmap_free *flist); |
183 | int xfs_bmap_finish(struct xfs_trans **tp, struct xfs_bmap_free *flist, | ||
184 | int *committed); | ||
152 | void xfs_bmap_compute_maxlevels(struct xfs_mount *mp, int whichfork); | 185 | void xfs_bmap_compute_maxlevels(struct xfs_mount *mp, int whichfork); |
153 | int xfs_bmap_first_unused(struct xfs_trans *tp, struct xfs_inode *ip, | 186 | int xfs_bmap_first_unused(struct xfs_trans *tp, struct xfs_inode *ip, |
154 | xfs_extlen_t len, xfs_fileoff_t *unused, int whichfork); | 187 | xfs_extlen_t len, xfs_fileoff_t *unused, int whichfork); |
diff --git a/fs/xfs/xfs_fs.h b/fs/xfs/libxfs/xfs_fs.h index 18dc721ca19f..18dc721ca19f 100644 --- a/fs/xfs/xfs_fs.h +++ b/fs/xfs/libxfs/xfs_fs.h | |||
diff --git a/fs/xfs/xfs_types.h b/fs/xfs/libxfs/xfs_types.h index b79dc66b2ecd..b79dc66b2ecd 100644 --- a/fs/xfs/xfs_types.h +++ b/fs/xfs/libxfs/xfs_types.h | |||
diff --git a/fs/xfs/xfs_bmap_util.h b/fs/xfs/xfs_bmap_util.h index 2fdb72d2c908..736429a72a12 100644 --- a/fs/xfs/xfs_bmap_util.h +++ b/fs/xfs/xfs_bmap_util.h | |||
@@ -26,43 +26,8 @@ struct xfs_ifork; | |||
26 | struct xfs_inode; | 26 | struct xfs_inode; |
27 | struct xfs_mount; | 27 | struct xfs_mount; |
28 | struct xfs_trans; | 28 | struct xfs_trans; |
29 | struct xfs_bmalloca; | ||
29 | 30 | ||
30 | /* | ||
31 | * Argument structure for xfs_bmap_alloc. | ||
32 | */ | ||
33 | struct xfs_bmalloca { | ||
34 | xfs_fsblock_t *firstblock; /* i/o first block allocated */ | ||
35 | struct xfs_bmap_free *flist; /* bmap freelist */ | ||
36 | struct xfs_trans *tp; /* transaction pointer */ | ||
37 | struct xfs_inode *ip; /* incore inode pointer */ | ||
38 | struct xfs_bmbt_irec prev; /* extent before the new one */ | ||
39 | struct xfs_bmbt_irec got; /* extent after, or delayed */ | ||
40 | |||
41 | xfs_fileoff_t offset; /* offset in file filling in */ | ||
42 | xfs_extlen_t length; /* i/o length asked/allocated */ | ||
43 | xfs_fsblock_t blkno; /* starting block of new extent */ | ||
44 | |||
45 | struct xfs_btree_cur *cur; /* btree cursor */ | ||
46 | xfs_extnum_t idx; /* current extent index */ | ||
47 | int nallocs;/* number of extents alloc'd */ | ||
48 | int logflags;/* flags for transaction logging */ | ||
49 | |||
50 | xfs_extlen_t total; /* total blocks needed for xaction */ | ||
51 | xfs_extlen_t minlen; /* minimum allocation size (blocks) */ | ||
52 | xfs_extlen_t minleft; /* amount must be left after alloc */ | ||
53 | bool eof; /* set if allocating past last extent */ | ||
54 | bool wasdel; /* replacing a delayed allocation */ | ||
55 | bool userdata;/* set if is user data */ | ||
56 | bool aeof; /* allocated space at eof */ | ||
57 | bool conv; /* overwriting unwritten extents */ | ||
58 | int flags; | ||
59 | struct completion *done; | ||
60 | struct work_struct work; | ||
61 | int result; | ||
62 | }; | ||
63 | |||
64 | int xfs_bmap_finish(struct xfs_trans **tp, struct xfs_bmap_free *flist, | ||
65 | int *committed); | ||
66 | int xfs_bmap_rtalloc(struct xfs_bmalloca *ap); | 31 | int xfs_bmap_rtalloc(struct xfs_bmalloca *ap); |
67 | int xfs_bmap_eof(struct xfs_inode *ip, xfs_fileoff_t endoff, | 32 | int xfs_bmap_eof(struct xfs_inode *ip, xfs_fileoff_t endoff, |
68 | int whichfork, int *eof); | 33 | int whichfork, int *eof); |
diff --git a/fs/xfs/xfs_dquot.h b/fs/xfs/xfs_dquot.h index c24c67e22a2a..2f536f33cd26 100644 --- a/fs/xfs/xfs_dquot.h +++ b/fs/xfs/xfs_dquot.h | |||
@@ -86,7 +86,7 @@ static inline void xfs_dqflock(xfs_dquot_t *dqp) | |||
86 | wait_for_completion(&dqp->q_flush); | 86 | wait_for_completion(&dqp->q_flush); |
87 | } | 87 | } |
88 | 88 | ||
89 | static inline int xfs_dqflock_nowait(xfs_dquot_t *dqp) | 89 | static inline bool xfs_dqflock_nowait(xfs_dquot_t *dqp) |
90 | { | 90 | { |
91 | return try_wait_for_completion(&dqp->q_flush); | 91 | return try_wait_for_completion(&dqp->q_flush); |
92 | } | 92 | } |
diff --git a/fs/xfs/xfs_iomap.c b/fs/xfs/xfs_iomap.c index c980e2a5086b..ccb1dd0d509e 100644 --- a/fs/xfs/xfs_iomap.c +++ b/fs/xfs/xfs_iomap.c | |||
@@ -802,7 +802,7 @@ int | |||
802 | xfs_iomap_write_unwritten( | 802 | xfs_iomap_write_unwritten( |
803 | xfs_inode_t *ip, | 803 | xfs_inode_t *ip, |
804 | xfs_off_t offset, | 804 | xfs_off_t offset, |
805 | size_t count) | 805 | xfs_off_t count) |
806 | { | 806 | { |
807 | xfs_mount_t *mp = ip->i_mount; | 807 | xfs_mount_t *mp = ip->i_mount; |
808 | xfs_fileoff_t offset_fsb; | 808 | xfs_fileoff_t offset_fsb; |
diff --git a/fs/xfs/xfs_iomap.h b/fs/xfs/xfs_iomap.h index 411fbb8919ef..8688e663d744 100644 --- a/fs/xfs/xfs_iomap.h +++ b/fs/xfs/xfs_iomap.h | |||
@@ -27,6 +27,6 @@ int xfs_iomap_write_delay(struct xfs_inode *, xfs_off_t, size_t, | |||
27 | struct xfs_bmbt_irec *); | 27 | struct xfs_bmbt_irec *); |
28 | int xfs_iomap_write_allocate(struct xfs_inode *, xfs_off_t, | 28 | int xfs_iomap_write_allocate(struct xfs_inode *, xfs_off_t, |
29 | struct xfs_bmbt_irec *); | 29 | struct xfs_bmbt_irec *); |
30 | int xfs_iomap_write_unwritten(struct xfs_inode *, xfs_off_t, size_t); | 30 | int xfs_iomap_write_unwritten(struct xfs_inode *, xfs_off_t, xfs_off_t); |
31 | 31 | ||
32 | #endif /* __XFS_IOMAP_H__*/ | 32 | #endif /* __XFS_IOMAP_H__*/ |
diff --git a/fs/xfs/xfs_sysctl.c b/fs/xfs/xfs_sysctl.c index 1743b9f8e23d..a0c8067cea6f 100644 --- a/fs/xfs/xfs_sysctl.c +++ b/fs/xfs/xfs_sysctl.c | |||
@@ -149,24 +149,6 @@ static struct ctl_table xfs_table[] = { | |||
149 | .extra2 = &xfs_params.inherit_noatim.max | 149 | .extra2 = &xfs_params.inherit_noatim.max |
150 | }, | 150 | }, |
151 | { | 151 | { |
152 | .procname = "xfsbufd_centisecs", | ||
153 | .data = &xfs_params.xfs_buf_timer.val, | ||
154 | .maxlen = sizeof(int), | ||
155 | .mode = 0644, | ||
156 | .proc_handler = proc_dointvec_minmax, | ||
157 | .extra1 = &xfs_params.xfs_buf_timer.min, | ||
158 | .extra2 = &xfs_params.xfs_buf_timer.max | ||
159 | }, | ||
160 | { | ||
161 | .procname = "age_buffer_centisecs", | ||
162 | .data = &xfs_params.xfs_buf_age.val, | ||
163 | .maxlen = sizeof(int), | ||
164 | .mode = 0644, | ||
165 | .proc_handler = proc_dointvec_minmax, | ||
166 | .extra1 = &xfs_params.xfs_buf_age.min, | ||
167 | .extra2 = &xfs_params.xfs_buf_age.max | ||
168 | }, | ||
169 | { | ||
170 | .procname = "inherit_nosymlinks", | 152 | .procname = "inherit_nosymlinks", |
171 | .data = &xfs_params.inherit_nosym.val, | 153 | .data = &xfs_params.inherit_nosym.val, |
172 | .maxlen = sizeof(int), | 154 | .maxlen = sizeof(int), |