Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
055da1b7
Commit
055da1b7
authored
Sep 15, 2009
by
Artem Bityutskiy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UBIFS: various minor commentary fixes
Signed-off-by:
Artem Bityutskiy
<
Artem.Bityutskiy@nokia.com
>
parent
77a7ae58
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
fs/ubifs/budget.c
fs/ubifs/budget.c
+1
-1
fs/ubifs/lprops.c
fs/ubifs/lprops.c
+7
-7
No files found.
fs/ubifs/budget.c
View file @
055da1b7
...
@@ -741,7 +741,7 @@ long long ubifs_get_free_space_nolock(struct ubifs_info *c)
...
@@ -741,7 +741,7 @@ long long ubifs_get_free_space_nolock(struct ubifs_info *c)
* ubifs_get_free_space - return amount of free space.
* ubifs_get_free_space - return amount of free space.
* @c: UBIFS file-system description object
* @c: UBIFS file-system description object
*
*
* This function calculates and retuns amount of free space to report to
* This function calculates and retu
r
ns amount of free space to report to
* user-space.
* user-space.
*/
*/
long
long
ubifs_get_free_space
(
struct
ubifs_info
*
c
)
long
long
ubifs_get_free_space
(
struct
ubifs_info
*
c
)
...
...
fs/ubifs/lprops.c
View file @
055da1b7
...
@@ -281,7 +281,7 @@ void ubifs_add_to_cat(struct ubifs_info *c, struct ubifs_lprops *lprops,
...
@@ -281,7 +281,7 @@ void ubifs_add_to_cat(struct ubifs_info *c, struct ubifs_lprops *lprops,
case
LPROPS_FREE
:
case
LPROPS_FREE
:
if
(
add_to_lpt_heap
(
c
,
lprops
,
cat
))
if
(
add_to_lpt_heap
(
c
,
lprops
,
cat
))
break
;
break
;
/* No more room on heap so make it uncategorized */
/* No more room on heap so make it un
-
categorized */
cat
=
LPROPS_UNCAT
;
cat
=
LPROPS_UNCAT
;
/* Fall through */
/* Fall through */
case
LPROPS_UNCAT
:
case
LPROPS_UNCAT
:
...
@@ -375,8 +375,8 @@ void ubifs_replace_cat(struct ubifs_info *c, struct ubifs_lprops *old_lprops,
...
@@ -375,8 +375,8 @@ void ubifs_replace_cat(struct ubifs_info *c, struct ubifs_lprops *old_lprops,
* @lprops: LEB properties
* @lprops: LEB properties
*
*
* A LEB may have fallen off of the bottom of a heap, and ended up as
* A LEB may have fallen off of the bottom of a heap, and ended up as
* un
categorized even though it has enough space for us now. If that is the cas
e
* un
-categorized even though it has enough space for us now. If that is th
e
* this function will put the LEB back onto a heap.
*
case
this function will put the LEB back onto a heap.
*/
*/
void
ubifs_ensure_cat
(
struct
ubifs_info
*
c
,
struct
ubifs_lprops
*
lprops
)
void
ubifs_ensure_cat
(
struct
ubifs_info
*
c
,
struct
ubifs_lprops
*
lprops
)
{
{
...
@@ -436,10 +436,10 @@ int ubifs_categorize_lprops(const struct ubifs_info *c,
...
@@ -436,10 +436,10 @@ int ubifs_categorize_lprops(const struct ubifs_info *c,
/**
/**
* change_category - change LEB properties category.
* change_category - change LEB properties category.
* @c: UBIFS file-system description object
* @c: UBIFS file-system description object
* @lprops: LEB properties to recategorize
* @lprops: LEB properties to re
-
categorize
*
*
* LEB properties are categorized to enable fast find operations. When the LEB
* LEB properties are categorized to enable fast find operations. When the LEB
* properties change they must be recategorized.
* properties change they must be re
-
categorized.
*/
*/
static
void
change_category
(
struct
ubifs_info
*
c
,
struct
ubifs_lprops
*
lprops
)
static
void
change_category
(
struct
ubifs_info
*
c
,
struct
ubifs_lprops
*
lprops
)
{
{
...
@@ -518,7 +518,7 @@ static int is_lprops_dirty(struct ubifs_info *c, struct ubifs_lprops *lprops)
...
@@ -518,7 +518,7 @@ static int is_lprops_dirty(struct ubifs_info *c, struct ubifs_lprops *lprops)
* @free: new free space amount
* @free: new free space amount
* @dirty: new dirty space amount
* @dirty: new dirty space amount
* @flags: new flags
* @flags: new flags
* @idx_gc_cnt: change to the count of idx_gc list
* @idx_gc_cnt: change to the count of
@
idx_gc list
*
*
* This function changes LEB properties (@free, @dirty or @flag). However, the
* This function changes LEB properties (@free, @dirty or @flag). However, the
* property which has the %LPROPS_NC value is not changed. Returns a pointer to
* property which has the %LPROPS_NC value is not changed. Returns a pointer to
...
@@ -535,7 +535,7 @@ const struct ubifs_lprops *ubifs_change_lp(struct ubifs_info *c,
...
@@ -535,7 +535,7 @@ const struct ubifs_lprops *ubifs_change_lp(struct ubifs_info *c,
{
{
/*
/*
* This is the only function that is allowed to change lprops, so we
* This is the only function that is allowed to change lprops, so we
* discard the
const
qualifier.
* discard the
"const"
qualifier.
*/
*/
struct
ubifs_lprops
*
lprops
=
(
struct
ubifs_lprops
*
)
lp
;
struct
ubifs_lprops
*
lprops
=
(
struct
ubifs_lprops
*
)
lp
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment