Browse Source

ext4: add static keyword to ext4_trans_start/stop/abort.

pull/11/head
ngkaho1234 9 years ago
committed by gkostka
parent
commit
f3e06a2a6d
  1. 6
      lwext4/ext4.c

6
lwext4/ext4.c

@ -555,7 +555,7 @@ Finish:
return r; return r;
} }
int ext4_trans_start(struct ext4_mountpoint *mp) static int ext4_trans_start(struct ext4_mountpoint *mp)
{ {
int r = EOK; int r = EOK;
if (mp->fs.jbd_journal && !mp->fs.curr_trans) { if (mp->fs.jbd_journal && !mp->fs.curr_trans) {
@ -572,7 +572,7 @@ Finish:
return r; return r;
} }
int ext4_trans_stop(struct ext4_mountpoint *mp) static int ext4_trans_stop(struct ext4_mountpoint *mp)
{ {
int r = EOK; int r = EOK;
if (mp->fs.jbd_journal && mp->fs.curr_trans) { if (mp->fs.jbd_journal && mp->fs.curr_trans) {
@ -584,7 +584,7 @@ int ext4_trans_stop(struct ext4_mountpoint *mp)
return r; return r;
} }
void ext4_trans_abort(struct ext4_mountpoint *mp) static void ext4_trans_abort(struct ext4_mountpoint *mp)
{ {
if (mp->fs.jbd_journal && mp->fs.curr_trans) { if (mp->fs.jbd_journal && mp->fs.curr_trans) {
struct jbd_journal *journal = mp->fs.jbd_journal; struct jbd_journal *journal = mp->fs.jbd_journal;

Loading…
Cancel
Save