aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jfs/xattr.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/jfs/xattr.c')
-rw-r--r--fs/jfs/xattr.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/fs/jfs/xattr.c b/fs/jfs/xattr.c
index 7a10e1928961..4c7985ebca92 100644
--- a/fs/jfs/xattr.c
+++ b/fs/jfs/xattr.c
@@ -4,16 +4,16 @@
4 * 4 *
5 * This program is free software; you can redistribute it and/or modify 5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by 6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or 7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version. 8 * (at your option) any later version.
9 * 9 *
10 * This program is distributed in the hope that it will be useful, 10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
13 * the GNU General Public License for more details. 13 * the GNU General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU General Public License 15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software 16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */ 18 */
19 19
@@ -57,7 +57,7 @@
57 * 57 *
58 * 0 4 4 + EA_SIZE(ea1) 58 * 0 4 4 + EA_SIZE(ea1)
59 * +------------+-------------------+--------------------+----- 59 * +------------+-------------------+--------------------+-----
60 * | Overall EA | First FEA Element | Second FEA Element | ..... 60 * | Overall EA | First FEA Element | Second FEA Element | .....
61 * | List Size | | | 61 * | List Size | | |
62 * +------------+-------------------+--------------------+----- 62 * +------------+-------------------+--------------------+-----
63 * 63 *
@@ -155,9 +155,9 @@ static void ea_release(struct inode *inode, struct ea_buffer *ea_buf);
155 155
156/* 156/*
157 * NAME: ea_write_inline 157 * NAME: ea_write_inline
158 * 158 *
159 * FUNCTION: Attempt to write an EA inline if area is available 159 * FUNCTION: Attempt to write an EA inline if area is available
160 * 160 *
161 * PRE CONDITIONS: 161 * PRE CONDITIONS:
162 * Already verified that the specified EA is small enough to fit inline 162 * Already verified that the specified EA is small enough to fit inline
163 * 163 *
@@ -216,10 +216,10 @@ static int ea_write_inline(struct inode *ip, struct jfs_ea_list *ealist,
216 216
217/* 217/*
218 * NAME: ea_write 218 * NAME: ea_write
219 * 219 *
220 * FUNCTION: Write an EA for an inode 220 * FUNCTION: Write an EA for an inode
221 * 221 *
222 * PRE CONDITIONS: EA has been verified 222 * PRE CONDITIONS: EA has been verified
223 * 223 *
224 * PARAMETERS: 224 * PARAMETERS:
225 * ip - Inode pointer 225 * ip - Inode pointer
@@ -340,9 +340,9 @@ static int ea_write(struct inode *ip, struct jfs_ea_list *ealist, int size,
340 340
341/* 341/*
342 * NAME: ea_read_inline 342 * NAME: ea_read_inline
343 * 343 *
344 * FUNCTION: Read an inlined EA into user's buffer 344 * FUNCTION: Read an inlined EA into user's buffer
345 * 345 *
346 * PARAMETERS: 346 * PARAMETERS:
347 * ip - Inode pointer 347 * ip - Inode pointer
348 * ealist - Pointer to buffer to fill in with EA 348 * ealist - Pointer to buffer to fill in with EA
@@ -372,9 +372,9 @@ static int ea_read_inline(struct inode *ip, struct jfs_ea_list *ealist)
372 372
373/* 373/*
374 * NAME: ea_read 374 * NAME: ea_read
375 * 375 *
376 * FUNCTION: copy EA data into user's buffer 376 * FUNCTION: copy EA data into user's buffer
377 * 377 *
378 * PARAMETERS: 378 * PARAMETERS:
379 * ip - Inode pointer 379 * ip - Inode pointer
380 * ealist - Pointer to buffer to fill in with EA 380 * ealist - Pointer to buffer to fill in with EA
@@ -406,7 +406,7 @@ static int ea_read(struct inode *ip, struct jfs_ea_list *ealist)
406 return -EIO; 406 return -EIO;
407 } 407 }
408 408
409 /* 409 /*
410 * Figure out how many blocks were allocated when this EA list was 410 * Figure out how many blocks were allocated when this EA list was
411 * originally written to disk. 411 * originally written to disk.
412 */ 412 */
@@ -443,14 +443,14 @@ static int ea_read(struct inode *ip, struct jfs_ea_list *ealist)
443 443
444/* 444/*
445 * NAME: ea_get 445 * NAME: ea_get
446 * 446 *
447 * FUNCTION: Returns buffer containing existing extended attributes. 447 * FUNCTION: Returns buffer containing existing extended attributes.
448 * The size of the buffer will be the larger of the existing 448 * The size of the buffer will be the larger of the existing
449 * attributes size, or min_size. 449 * attributes size, or min_size.
450 * 450 *
451 * The buffer, which may be inlined in the inode or in the 451 * The buffer, which may be inlined in the inode or in the
452 * page cache must be release by calling ea_release or ea_put 452 * page cache must be release by calling ea_release or ea_put
453 * 453 *
454 * PARAMETERS: 454 * PARAMETERS:
455 * inode - Inode pointer 455 * inode - Inode pointer
456 * ea_buf - Structure to be populated with ealist and its metadata 456 * ea_buf - Structure to be populated with ealist and its metadata
@@ -1054,7 +1054,7 @@ ssize_t jfs_listxattr(struct dentry * dentry, char *data, size_t buf_size)
1054 1054
1055 /* compute required size of list */ 1055 /* compute required size of list */
1056 for (ea = FIRST_EA(ealist); ea < END_EALIST(ealist); ea = NEXT_EA(ea)) { 1056 for (ea = FIRST_EA(ealist); ea < END_EALIST(ealist); ea = NEXT_EA(ea)) {
1057 if (can_list(ea)) 1057 if (can_list(ea))
1058 size += name_size(ea) + 1; 1058 size += name_size(ea) + 1;
1059 } 1059 }
1060 1060
@@ -1069,7 +1069,7 @@ ssize_t jfs_listxattr(struct dentry * dentry, char *data, size_t buf_size)
1069 /* Copy attribute names to buffer */ 1069 /* Copy attribute names to buffer */
1070 buffer = data; 1070 buffer = data;
1071 for (ea = FIRST_EA(ealist); ea < END_EALIST(ealist); ea = NEXT_EA(ea)) { 1071 for (ea = FIRST_EA(ealist); ea < END_EALIST(ealist); ea = NEXT_EA(ea)) {
1072 if (can_list(ea)) { 1072 if (can_list(ea)) {
1073 int namelen = copy_name(buffer, ea); 1073 int namelen = copy_name(buffer, ea);
1074 buffer += namelen + 1; 1074 buffer += namelen + 1;
1075 } 1075 }