Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145324
b: refs/heads/master
c: b14f3bd
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed May 27, 2009
1 parent 17cb1a9 commit 5b86123
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 22 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8b31e49d1d75729c1da9009664ba52abd1adc628
refs/heads/master: b14f3bd90d2202a83f36eac85bcb3db0fba7d6a6
6 changes: 3 additions & 3 deletions trunk/drivers/md/raid5.c
Original file line number Diff line number Diff line change
Expand Up @@ -3811,13 +3811,13 @@ static sector_t reshape_request(mddev_t *mddev, sector_t sector_nr, int *skipped
safepos = conf->reshape_safe;
sector_div(safepos, data_disks);
if (mddev->delta_disks < 0) {
writepos -= min(reshape_sectors, writepos);
writepos -= min_t(sector_t, reshape_sectors, writepos);
readpos += reshape_sectors;
safepos += reshape_sectors;
} else {
writepos += reshape_sectors;
readpos -= min(reshape_sectors, readpos);
safepos -= min(reshape_sectors, safepos);
readpos -= min_t(sector_t, reshape_sectors, readpos);
safepos -= min_t(sector_t, reshape_sectors, safepos);
}

/* 'writepos' is the most advanced device address we might write.
Expand Down
18 changes: 9 additions & 9 deletions trunk/fs/cachefiles/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,31 +122,31 @@ static inline void cachefiles_state_changed(struct cachefiles_cache *cache)
}

/*
* cf-bind.c
* bind.c
*/
extern int cachefiles_daemon_bind(struct cachefiles_cache *cache, char *args);
extern void cachefiles_daemon_unbind(struct cachefiles_cache *cache);

/*
* cf-daemon.c
* daemon.c
*/
extern const struct file_operations cachefiles_daemon_fops;

extern int cachefiles_has_space(struct cachefiles_cache *cache,
unsigned fnr, unsigned bnr);

/*
* cf-interface.c
* interface.c
*/
extern const struct fscache_cache_ops cachefiles_cache_ops;

/*
* cf-key.c
* key.c
*/
extern char *cachefiles_cook_key(const u8 *raw, int keylen, uint8_t type);

/*
* cf-namei.c
* namei.c
*/
extern int cachefiles_delete_object(struct cachefiles_cache *cache,
struct cachefiles_object *object);
Expand All @@ -165,7 +165,7 @@ extern int cachefiles_check_in_use(struct cachefiles_cache *cache,
struct dentry *dir, char *filename);

/*
* cf-proc.c
* proc.c
*/
#ifdef CONFIG_CACHEFILES_HISTOGRAM
extern atomic_t cachefiles_lookup_histogram[HZ];
Expand All @@ -190,7 +190,7 @@ void cachefiles_hist(atomic_t histogram[], unsigned long start_jif)
#endif

/*
* cf-rdwr.c
* rdwr.c
*/
extern int cachefiles_read_or_alloc_page(struct fscache_retrieval *,
struct page *, gfp_t);
Expand All @@ -205,7 +205,7 @@ extern int cachefiles_write_page(struct fscache_storage *, struct page *);
extern void cachefiles_uncache_page(struct fscache_object *, struct page *);

/*
* cf-security.c
* security.c
*/
extern int cachefiles_get_security_ID(struct cachefiles_cache *cache);
extern int cachefiles_determine_cache_security(struct cachefiles_cache *cache,
Expand All @@ -225,7 +225,7 @@ static inline void cachefiles_end_secure(struct cachefiles_cache *cache,
}

/*
* cf-xattr.c
* xattr.c
*/
extern int cachefiles_check_object_type(struct cachefiles_object *object);
extern int cachefiles_set_object_xattr(struct cachefiles_object *object,
Expand Down
18 changes: 9 additions & 9 deletions trunk/fs/fscache/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#define FSCACHE_MAX_THREADS 32

/*
* fsc-cache.c
* cache.c
*/
extern struct list_head fscache_cache_list;
extern struct rw_semaphore fscache_addremove_sem;
Expand All @@ -37,21 +37,21 @@ extern struct fscache_cache *fscache_select_cache_for_object(
struct fscache_cookie *);

/*
* fsc-cookie.c
* cookie.c
*/
extern struct kmem_cache *fscache_cookie_jar;

extern void fscache_cookie_init_once(void *);
extern void __fscache_cookie_put(struct fscache_cookie *);

/*
* fsc-fsdef.c
* fsdef.c
*/
extern struct fscache_cookie fscache_fsdef_index;
extern struct fscache_cookie_def fscache_fsdef_netfs_def;

/*
* fsc-histogram.c
* histogram.c
*/
#ifdef CONFIG_FSCACHE_HISTOGRAM
extern atomic_t fscache_obj_instantiate_histogram[HZ];
Expand All @@ -75,7 +75,7 @@ extern const struct file_operations fscache_histogram_fops;
#endif

/*
* fsc-main.c
* main.c
*/
extern unsigned fscache_defer_lookup;
extern unsigned fscache_defer_create;
Expand All @@ -86,14 +86,14 @@ extern int fscache_wait_bit(void *);
extern int fscache_wait_bit_interruptible(void *);

/*
* fsc-object.c
* object.c
*/
extern void fscache_withdrawing_object(struct fscache_cache *,
struct fscache_object *);
extern void fscache_enqueue_object(struct fscache_object *);

/*
* fsc-operation.c
* operation.c
*/
extern int fscache_submit_exclusive_op(struct fscache_object *,
struct fscache_operation *);
Expand All @@ -104,7 +104,7 @@ extern void fscache_start_operations(struct fscache_object *);
extern void fscache_operation_gc(struct work_struct *);

/*
* fsc-proc.c
* proc.c
*/
#ifdef CONFIG_PROC_FS
extern int __init fscache_proc_init(void);
Expand All @@ -115,7 +115,7 @@ extern void fscache_proc_cleanup(void);
#endif

/*
* fsc-stats.c
* stats.c
*/
#ifdef CONFIG_FSCACHE_STATS
extern atomic_t fscache_n_ops_processed[FSCACHE_MAX_THREADS];
Expand Down
6 changes: 6 additions & 0 deletions trunk/security/tomoyo/tomoyo.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ static int tomoyo_cred_prepare(struct cred *new, const struct cred *old,

static int tomoyo_bprm_set_creds(struct linux_binprm *bprm)
{
int rc;

rc = cap_bprm_set_creds(bprm);
if (rc)
return rc;

/*
* Do only if this function is called for the first time of an execve
* operation.
Expand Down

0 comments on commit 5b86123

Please sign in to comment.