Commit 7373909de403d229979842081c63917452e39402

Authored by Andrew Morton
Committed by Linus Torvalds
1 parent ba40aaf043

[PATCH] rock: comment tidies

Be a bit more standard in comment layout.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Showing 1 changed file with 21 additions and 11 deletions Side-by-side Diff

... ... @@ -13,12 +13,14 @@
13 13 #include "isofs.h"
14 14 #include "rock.h"
15 15  
16   -/* These functions are designed to read the system areas of a directory record
  16 +/*
  17 + * These functions are designed to read the system areas of a directory record
17 18 * and extract relevant information. There are different functions provided
18 19 * depending upon what information we need at the time. One function fills
19 20 * out an inode structure, a second one extracts a filename, a third one
20 21 * returns a symbolic link name, and a fourth one returns the extent number
21   - * for the file. */
  22 + * for the file.
  23 + */
22 24  
23 25 #define SIG(A,B) ((A) | ((B) << 8)) /* isonum_721() */
24 26  
... ... @@ -34,7 +36,7 @@
34 36  
35 37 /*
36 38 * This is a way of ensuring that we have something in the system
37   - * use fields that is compatible with Rock Ridge. Return zero on success.
  39 + * use fields that is compatible with Rock Ridge. Return zero on success.
38 40 */
39 41  
40 42 static int check_sp(struct rock_ridge *rr, struct inode *inode)
... ... @@ -111,7 +113,9 @@
111 113 return ret;
112 114 }
113 115  
114   -/* return length of name field; 0: not found, -1: to be ignored */
  116 +/*
  117 + * return length of name field; 0: not found, -1: to be ignored
  118 + */
115 119 int get_rock_ridge_filename(struct iso_directory_record *de,
116 120 char *retname, struct inode *inode)
117 121 {
... ... @@ -535,8 +539,11 @@
535 539 int parse_rock_ridge_inode(struct iso_directory_record *de, struct inode *inode)
536 540 {
537 541 int result = parse_rock_ridge_inode_internal(de, inode, 0);
538   - /* if rockridge flag was reset and we didn't look for attributes
539   - * behind eventual XA attributes, have a look there */
  542 +
  543 + /*
  544 + * if rockridge flag was reset and we didn't look for attributes
  545 + * behind eventual XA attributes, have a look there
  546 + */
540 547 if ((ISOFS_SB(inode->i_sb)->s_rock_offset == -1)
541 548 && (ISOFS_SB(inode->i_sb)->s_rock == 2)) {
542 549 result = parse_rock_ridge_inode_internal(de, inode, 14);
... ... @@ -544,9 +551,10 @@
544 551 return result;
545 552 }
546 553  
547   -/* readpage() for symlinks: reads symlink contents into the page and either
548   - makes it uptodate and returns 0 or returns error (-EIO) */
549   -
  554 +/*
  555 + * readpage() for symlinks: reads symlink contents into the page and either
  556 + * makes it uptodate and returns 0 or returns error (-EIO)
  557 + */
550 558 static int rock_ridge_symlink_readpage(struct file *file, struct page *page)
551 559 {
552 560 struct inode *inode = page->mapping->host;
... ... @@ -584,8 +592,10 @@
584 592 if (offset + *pnt > bufsize)
585 593 goto out_bad_span;
586 594  
587   - /* Now test for possible Rock Ridge extensions which will override
588   - some of these numbers in the inode structure. */
  595 + /*
  596 + * Now test for possible Rock Ridge extensions which will override
  597 + * some of these numbers in the inode structure.
  598 + */
589 599  
590 600 setup_rock_ridge(raw_de, inode, &rs);
591 601