Skip to content

Commit

Permalink
[PATCH] rock: comment tidies
Browse files Browse the repository at this point in the history
Be a bit more standard in comment layout.

Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Jun 22, 2005
1 parent ba40aaf commit 7373909
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions fs/isofs/rock.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@
#include "isofs.h"
#include "rock.h"

/* These functions are designed to read the system areas of a directory record
/*
* These functions are designed to read the system areas of a directory record
* and extract relevant information. There are different functions provided
* depending upon what information we need at the time. One function fills
* out an inode structure, a second one extracts a filename, a third one
* returns a symbolic link name, and a fourth one returns the extent number
* for the file. */
* for the file.
*/

#define SIG(A,B) ((A) | ((B) << 8)) /* isonum_721() */

Expand All @@ -34,7 +36,7 @@ struct rock_state {

/*
* This is a way of ensuring that we have something in the system
* use fields that is compatible with Rock Ridge. Return zero on success.
* use fields that is compatible with Rock Ridge. Return zero on success.
*/

static int check_sp(struct rock_ridge *rr, struct inode *inode)
Expand Down Expand Up @@ -111,7 +113,9 @@ static int rock_continue(struct rock_state *rs)
return ret;
}

/* return length of name field; 0: not found, -1: to be ignored */
/*
* return length of name field; 0: not found, -1: to be ignored
*/
int get_rock_ridge_filename(struct iso_directory_record *de,
char *retname, struct inode *inode)
{
Expand Down Expand Up @@ -535,18 +539,22 @@ static char *get_symlink_chunk(char *rpnt, struct rock_ridge *rr, char *plimit)
int parse_rock_ridge_inode(struct iso_directory_record *de, struct inode *inode)
{
int result = parse_rock_ridge_inode_internal(de, inode, 0);
/* if rockridge flag was reset and we didn't look for attributes
* behind eventual XA attributes, have a look there */

/*
* if rockridge flag was reset and we didn't look for attributes
* behind eventual XA attributes, have a look there
*/
if ((ISOFS_SB(inode->i_sb)->s_rock_offset == -1)
&& (ISOFS_SB(inode->i_sb)->s_rock == 2)) {
result = parse_rock_ridge_inode_internal(de, inode, 14);
}
return result;
}

/* readpage() for symlinks: reads symlink contents into the page and either
makes it uptodate and returns 0 or returns error (-EIO) */

/*
* readpage() for symlinks: reads symlink contents into the page and either
* makes it uptodate and returns 0 or returns error (-EIO)
*/
static int rock_ridge_symlink_readpage(struct file *file, struct page *page)
{
struct inode *inode = page->mapping->host;
Expand Down Expand Up @@ -584,8 +592,10 @@ static int rock_ridge_symlink_readpage(struct file *file, struct page *page)
if (offset + *pnt > bufsize)
goto out_bad_span;

/* Now test for possible Rock Ridge extensions which will override
some of these numbers in the inode structure. */
/*
* Now test for possible Rock Ridge extensions which will override
* some of these numbers in the inode structure.
*/

setup_rock_ridge(raw_de, inode, &rs);

Expand Down

0 comments on commit 7373909

Please sign in to comment.