Whamcloud - gitweb
b=2150
authorphil <phil>
Thu, 23 Oct 2003 00:52:52 +0000 (00:52 +0000)
committerphil <phil>
Thu, 23 Oct 2003 00:52:52 +0000 (00:52 +0000)
r=shaver
- filter_next_id increased the last_id counter, even before we know whether the
  create succeeded
- failed create would dereference NULL inode

lustre/obdfilter/filter_internal.h

index 070a932..4ceefdb 100644 (file)
@@ -103,7 +103,7 @@ struct dentry *__filter_oa2dentry(struct obd_device *obd, struct obdo *oa,
 #define filter_oa2dentry(obd, oa) __filter_oa2dentry(obd, oa, __FUNCTION__)
 
 int filter_finish_transno(struct obd_export *, struct obd_trans_info *, int rc);
-__u64 filter_next_id(struct filter_obd *, struct obdo *);
+__u64 filter_last_id(struct filter_obd *, struct obdo *);
 int filter_update_server_data(struct obd_device *, struct file *, obd_gr,
                               struct filter_server_data *, int force_sync);
 int filter_update_last_objid(struct obd_device *, obd_gr, int force_sync);